Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
include
effects
SkDiscretePathEffect.h
Go to the documentation of this file.
1
/*
2
* Copyright 2006 The Android Open Source Project
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
8
#ifndef SkDiscretePathEffect_DEFINED
9
#define SkDiscretePathEffect_DEFINED
10
11
#include "
include/core/SkPathEffect.h
"
12
13
/** \class SkDiscretePathEffect
14
15
This path effect chops a path into discrete segments, and randomly displaces them.
16
*/
17
class
SK_API
SkDiscretePathEffect
{
18
public
:
19
/** Break the path into segments of segLength length, and randomly move the endpoints
20
away from the original path by a maximum of deviation.
21
Note: works on filled or framed paths
22
23
@param seedAssist This is a caller-supplied seedAssist that modifies
24
the seed value that is used to randomize the path
25
segments' endpoints. If not supplied it defaults to 0,
26
in which case filtering a path multiple times will
27
result in the same set of segments (this is useful for
28
testing). If a caller does not want this behaviour
29
they can pass in a different seedAssist to get a
30
different set of path segments.
31
*/
32
static
sk_sp<SkPathEffect>
Make
(
SkScalar
segLength,
SkScalar
dev, uint32_t seedAssist = 0);
33
34
static
void
RegisterFlattenables();
35
};
36
37
#endif
SK_API
#define SK_API
Definition
SkAPI.h:35
Make
static std::unique_ptr< SkEncoder > Make(SkWStream *dst, const SkPixmap *src, const SkYUVAPixmaps *srcYUVA, const SkColorSpace *srcYUVAColorSpace, const SkJpegEncoder::Options &options)
Definition
SkJpegEncoderImpl.cpp:259
SkPathEffect.h
SkDiscretePathEffect
Definition
SkDiscretePathEffect.h:17
sk_sp
Definition
SkRefCnt.h:220
SkScalar
float SkScalar
Definition
extension.cpp:12
Generated on Fri Apr 26 2024 06:16:11 for Flutter Engine by
1.9.8