Flutter Engine
The Flutter Engine
|
Public Member Functions | |
SkSumPathEffect (sk_sp< SkPathEffect > first, sk_sp< SkPathEffect > second) | |
bool | onFilterPath (SkPath *dst, const SkPath &src, SkStrokeRec *rec, const SkRect *cullRect, const SkMatrix &ctm) const override |
bool | computeFastBounds (SkRect *bounds) const override |
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 |
Static Public Member Functions | |
static sk_sp< SkPathEffect > | Make (sk_sp< SkPathEffect > first, sk_sp< SkPathEffect > second) |
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) |
Friends | |
class | SkPathEffect |
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 &) |
Protected Member Functions inherited from SkPairPathEffect | |
SkPairPathEffect (sk_sp< SkPathEffect > pe0, sk_sp< SkPathEffect > pe1) | |
void | flatten (SkWriteBuffer &buffer) const override |
Protected Attributes inherited from SkPairPathEffect | |
sk_sp< SkPathEffect > | fPE0 |
sk_sp< SkPathEffect > | fPE1 |
This subclass of SkPathEffect applies two pathEffects, one after the other. Its filterPath() returns true if either of the effects succeeded.
Definition at line 153 of file SkPathEffect.cpp.
|
inline |
Definition at line 170 of file SkPathEffect.cpp.
|
inlineoverridevirtual |
Implements SkPathEffectBase.
Definition at line 183 of file SkPathEffect.cpp.
|
inlinestatic |
Construct a pathEffect whose effect is to apply two effects, in sequence. (e.g. first(path) + second(path)) The reference counts for first and second are both incremented in the constructor, and decremented in the destructor.
Definition at line 160 of file SkPathEffect.cpp.
|
inlineoverridevirtual |
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 173 of file SkPathEffect.cpp.
|
friend |
Definition at line 193 of file SkPathEffect.cpp.