Flutter Engine
The Flutter Engine
|
#include <SkColorFilterBase.h>
Public Types | |
enum class | Type { kNoop , M } |
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 &) |
Public Member Functions | |
virtual bool | appendStages (const SkStageRec &rec, bool shaderIsOpaque) const =0 |
virtual bool | onIsAlphaUnchanged () const |
virtual Type | type () const =0 |
bool | affectsTransparentBlack () const |
virtual SkRuntimeEffect * | asRuntimeEffect () const |
SkFlattenable::Type | getFlattenableType () const override |
virtual SkPMColor4f | onFilterColor4f (const SkPMColor4f &color, SkColorSpace *dstCS) const |
Public Member Functions inherited from SkColorFilter | |
bool | asAColorMode (SkColor *color, SkBlendMode *mode) const |
bool | asAColorMatrix (float matrix[20]) const |
bool | isAlphaUnchanged () const |
SkColor | filterColor (SkColor) const |
SkColor4f | filterColor4f (const SkColor4f &srcColor, SkColorSpace *srcCS, SkColorSpace *dstCS) const |
sk_sp< SkColorFilter > | makeComposed (sk_sp< SkColorFilter > inner) const |
sk_sp< SkColorFilter > | makeWithWorkingColorSpace (sk_sp< SkColorSpace >) 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 SkFlattenable::Type | GetFlattenableType () |
static sk_sp< SkColorFilter > | Deserialize (const void *data, size_t size, const SkDeserialProcs *procs=nullptr) |
Static Public Member Functions inherited from SkColorFilter | |
static sk_sp< SkColorFilter > | 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) |
Protected Member Functions | |
SkColorFilterBase () | |
virtual bool | onAsAColorMatrix (float[20]) const |
virtual bool | onAsAColorMode (SkColor *color, SkBlendMode *bmode) const |
Friends | |
class | SkColorFilter |
Definition at line 35 of file SkColorFilterBase.h.
|
strong |
Enumerator | |
---|---|
kNoop | |
M |
Definition at line 43 of file SkColorFilterBase.h.
|
inlineprotected |
Definition at line 79 of file SkColorFilterBase.h.
|
inline |
Definition at line 54 of file SkColorFilterBase.h.
|
pure virtual |
|
inlinevirtual |
Reimplemented in SkRuntimeColorFilter.
Definition at line 59 of file SkColorFilterBase.h.
|
inlinestatic |
Definition at line 69 of file SkColorFilterBase.h.
|
inlinestatic |
Definition at line 61 of file SkColorFilterBase.h.
|
inlineoverridevirtual |
Implements SkFlattenable.
Definition at line 65 of file SkColorFilterBase.h.
|
protectedvirtual |
Definition at line 29 of file SkColorFilterBase.cpp.
|
protectedvirtual |
Definition at line 25 of file SkColorFilterBase.cpp.
|
virtual |
Reimplemented in SkWorkingFormatColorFilter.
Definition at line 33 of file SkColorFilterBase.cpp.
|
inlinevirtual |
Returns the flags for this filter. Override in subclasses to return custom flags.
Reimplemented in SkBlendModeColorFilter, SkComposeColorFilter, SkMatrixColorFilter, SkRuntimeColorFilter, and SkWorkingFormatColorFilter.
Definition at line 41 of file SkColorFilterBase.h.
|
pure virtual |
|
friend |
Definition at line 85 of file SkColorFilterBase.h.