Flutter Engine
The Flutter Engine
|
Public Member Functions | |
Sk2DPathEffect (const SkMatrix &mat) | |
Public Member Functions inherited from SkPathEffectBase | |
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 |
Public Member Functions inherited from SkPathEffect | |
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 |
Public Member Functions inherited from SkFlattenable | |
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 |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Protected Member Functions | |
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 |
Friends | |
class | Sk2DPathEffectBlitter |
Definition at line 25 of file Sk2DPathEffect.cpp.
|
inline |
Definition at line 27 of file Sk2DPathEffect.cpp.
|
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.
|
inlineprotectedvirtual |
Definition at line 41 of file Sk2DPathEffect.cpp.
|
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.
|
inlineprotected |
Definition at line 68 of file Sk2DPathEffect.cpp.
|
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.
|
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.
|
friend |
Definition at line 115 of file Sk2DPathEffect.cpp.