Flutter Engine
The Flutter Engine
|
#include <SkDashImpl.h>
Public Member Functions | |
SkDashImpl (const SkScalar intervals[], int count, SkScalar phase) | |
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 | onNeedsCTM () const |
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 |
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 | |
~SkDashImpl () override | |
void | flatten (SkWriteBuffer &) const override |
bool | onFilterPath (SkPath *dst, const SkPath &src, SkStrokeRec *, const SkRect *, const SkMatrix &) const override |
bool | onAsPoints (PointData *results, const SkPath &src, const SkStrokeRec &, const SkMatrix &, const SkRect *) const override |
DashType | onAsADash (DashInfo *info) const override |
Private Member Functions | |
bool | computeFastBounds (SkRect *bounds) const override |
Additional Inherited Members | |
Public Types inherited from SkPathEffect | |
enum | DashType { kNone_DashType , kDash_DashType } |
Public Types inherited from SkFlattenable | |
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 Public Member Functions inherited from SkPathEffectBase | |
static sk_sp< SkPathEffect > | Deserialize (const void *data, size_t size, const SkDeserialProcs *procs=nullptr) |
static void | RegisterFlattenables () |
Static Public Member Functions inherited from SkPathEffect | |
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 Public Member Functions inherited from SkFlattenable | |
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 13 of file SkDashImpl.h.
Definition at line 34 of file SkDashPathEffect.cpp.
|
overrideprotected |
Definition at line 53 of file SkDashPathEffect.cpp.
|
inlineoverrideprivatevirtual |
Implements SkPathEffectBase.
Definition at line 31 of file SkDashImpl.h.
|
overrideprotectedvirtual |
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.
Definition at line 386 of file SkDashPathEffect.cpp.
|
overrideprotectedvirtual |
Reimplemented from SkPathEffectBase.
Definition at line 375 of file SkDashPathEffect.cpp.
|
overrideprotectedvirtual |
Reimplemented from SkPathEffectBase.
Definition at line 182 of file SkDashPathEffect.cpp.
|
overrideprotectedvirtual |
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.
Definition at line 57 of file SkDashPathEffect.cpp.