|
| Sk2DPathEffect (const SkMatrix &mat) |
|
| SkPathEffectBase () |
|
bool | asPoints (PointData *results, const SkPath &src, const SkStrokeRec &, const SkMatrix &, const SkRect *cullR) const |
|
SkFlattenable::Type | getFlattenableType () const override |
|
virtual bool | onFilterPath (SkPath *, const SkPath &, SkStrokeRec *, const SkRect *, const SkMatrix &) const =0 |
|
virtual bool | onNeedsCTM () const |
|
virtual bool | onAsPoints (PointData *, const SkPath &, const SkStrokeRec &, const SkMatrix &, const SkRect *) const |
|
virtual DashType | onAsADash (DashInfo *) const |
|
virtual bool | computeFastBounds (SkRect *bounds) const =0 |
|
DashType | asADash (DashInfo *info) const |
|
bool | filterPath (SkPath *dst, const SkPath &src, SkStrokeRec *, const SkRect *cullR) const |
|
bool | filterPath (SkPath *dst, const SkPath &src, SkStrokeRec *, const SkRect *cullR, const SkMatrix &ctm) const |
|
bool | needsCTM () const |
|
| SkFlattenable () |
|
virtual Factory | getFactory () const =0 |
|
virtual const char * | getTypeName () const =0 |
|
virtual void | flatten (SkWriteBuffer &) const |
|
virtual Type | getFlattenableType () const =0 |
|
sk_sp< SkData > | serialize (const SkSerialProcs *=nullptr) const |
|
size_t | serialize (void *memory, size_t memory_size, const SkSerialProcs *=nullptr) const |
|
| SkRefCntBase () |
|
virtual | ~SkRefCntBase () |
|
bool | unique () const |
|
void | ref () const |
|
void | unref () const |
|
|
virtual void | begin (const SkIRect &uvBounds, SkPath *dst) const |
|
virtual void | next (const SkPoint &loc, int u, int v, SkPath *dst) const |
|
virtual void | end (SkPath *dst) const |
|
virtual void | nextSpan (int x, int y, int ucount, SkPath *path) const |
|
const SkMatrix & | getMatrix () const |
|
void | flatten (SkWriteBuffer &buffer) const override |
|
bool | onFilterPath (SkPath *dst, const SkPath &src, SkStrokeRec *rec, const SkRect *cullRect, const SkMatrix &) const override |
|
|
enum | DashType { kNone_DashType
, kDash_DashType
} |
|
enum | Type {
kSkColorFilter_Type
, kSkBlender_Type
, kSkDrawable_Type
, kSkDrawLooper_Type
,
kSkImageFilter_Type
, kSkMaskFilter_Type
, kSkPathEffect_Type
, kSkShader_Type
} |
|
typedef sk_sp< SkFlattenable >(* | Factory) (SkReadBuffer &) |
|
static sk_sp< SkPathEffect > | Deserialize (const void *data, size_t size, const SkDeserialProcs *procs=nullptr) |
|
static void | RegisterFlattenables () |
|
static sk_sp< SkPathEffect > | MakeSum (sk_sp< SkPathEffect > first, sk_sp< SkPathEffect > second) |
|
static sk_sp< SkPathEffect > | MakeCompose (sk_sp< SkPathEffect > outer, sk_sp< SkPathEffect > inner) |
|
static SkFlattenable::Type | GetFlattenableType () |
|
static sk_sp< SkPathEffect > | Deserialize (const void *data, size_t size, const SkDeserialProcs *procs=nullptr) |
|
static Factory | NameToFactory (const char name[]) |
|
static const char * | FactoryToName (Factory) |
|
static void | Register (const char name[], Factory) |
|
static sk_sp< SkFlattenable > | Deserialize (Type, const void *data, size_t length, const SkDeserialProcs *procs=nullptr) |
|
Definition at line 25 of file Sk2DPathEffect.cpp.
◆ Sk2DPathEffect()
Sk2DPathEffect::Sk2DPathEffect |
( |
const SkMatrix & |
mat | ) |
|
|
inline |
Definition at line 27 of file Sk2DPathEffect.cpp.
27 : fMatrix(mat) {
28
29 fMatrixIsInvertible = fMatrix.
invert(&fInverse);
30 }
bool invert(SkMatrix *inverse) const
◆ begin()
virtual void Sk2DPathEffect::begin |
( |
const SkIRect & |
uvBounds, |
|
|
SkPath * |
dst |
|
) |
| const |
|
inlineprotectedvirtual |
New virtual, to be overridden by subclasses. This is called once from filterPath, and provides the uv parameter bounds for the path. Subsequent calls to next() will receive u and v values within these bounds, and then a call to end() will signal the end of processing.
Definition at line 39 of file Sk2DPathEffect.cpp.
◆ end()
virtual void Sk2DPathEffect::end |
( |
SkPath * |
dst | ) |
const |
|
inlineprotectedvirtual |
◆ flatten()
|
inlineoverrideprotectedvirtual |
Override this if your subclass needs to record data that it will need to recreate itself from its CreateProc (returned by getFactory()).
DEPRECATED public : will move to protected ... use serialize() instead
Reimplemented from SkFlattenable.
Reimplemented in SkLine2DPathEffectImpl, and SkPath2DPathEffectImpl.
Definition at line 70 of file Sk2DPathEffect.cpp.
70 {
71 buffer.writeMatrix(fMatrix);
72 }
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
◆ getMatrix()
const SkMatrix & Sk2DPathEffect::getMatrix |
( |
| ) |
const |
|
inlineprotected |
◆ next()
◆ nextSpan()
virtual void Sk2DPathEffect::nextSpan |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
ucount, |
|
|
SkPath * |
path |
|
) |
| const |
|
inlineprotectedvirtual |
Low-level virtual called per span of locations in the u-direction. The default implementation calls next() repeatedly with each location.
Reimplemented in SkLine2DPathEffectImpl.
Definition at line 47 of file Sk2DPathEffect.cpp.
47 {
48 if (!fMatrixIsInvertible) {
49 return;
50 }
51 #if defined(SK_BUILD_FOR_FUZZER)
52 if (ucount > 100) {
53 return;
54 }
55 #endif
56
59
61 do {
65 } while (--ucount > 0);
66 }
virtual void next(const SkPoint &loc, int u, int v, SkPath *dst) const
const SkMatrix & getMatrix() const
void mapPoints(SkPoint dst[], const SkPoint src[], int count) const
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
◆ onFilterPath()
|
inlineoverrideprotectedvirtual |
Filter the input path.
The CTM parameter is provided for path effects that can use the information. The output of path effects must always be in the original (input) coordinate system, regardless of whether the path effect uses the CTM or not.
Implements SkPathEffectBase.
Reimplemented in SkLine2DPathEffectImpl.
Definition at line 74 of file Sk2DPathEffect.cpp.
75 {
76 if (!fMatrixIsInvertible) {
77 return false;
78 }
79
82
83 src.transform(fInverse, &tmp);
87
91 for (; !iter.done(); iter.next()) {
93#if defined(SK_BUILD_FOR_FUZZER)
94 if (
rect.height() > 100) {
95 continue;
96 }
97#endif
100 }
101 }
102
104 }
105 return true;
106 }
virtual void end(SkPath *dst) const
virtual void begin(const SkIRect &uvBounds, SkPath *dst) const
virtual void nextSpan(int x, int y, int ucount, SkPath *path) const
const SkRect & getBounds() const
bool setPath(const SkPath &path, const SkRegion &clip)
sk_sp< SkBlender > blender SkRect rect
int32_t fLeft
smaller x-axis bounds
void round(SkIRect *dst) const
◆ Sk2DPathEffectBlitter
friend class Sk2DPathEffectBlitter |
|
friend |
The documentation for this class was generated from the following file: