Flutter Engine
The Flutter Engine
|
#include <SkBlenderBase.h>
Public Types | |
enum class | BlenderType { 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 std::optional< SkBlendMode > | asBlendMode () const |
bool | affectsTransparentBlack () const |
bool | appendStages (const SkStageRec &rec) const |
virtual bool | onAppendStages (const SkStageRec &rec) const =0 |
virtual SkRuntimeEffect * | asRuntimeEffect () const |
SkFlattenable::Type | getFlattenableType () const override |
virtual BlenderType | type () const =0 |
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 Public Member Functions inherited from SkBlender | |
static sk_sp< SkBlender > | Mode (SkBlendMode mode) |
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) |
Encapsulates a blend function, including non-public APIs. Blends combine a source color (the result of our paint) and destination color (from the canvas) into a final color.
Definition at line 39 of file SkBlenderBase.h.
|
strong |
Enumerator | |
---|---|
M |
Definition at line 60 of file SkBlenderBase.h.
bool SkBlenderBase::affectsTransparentBlack | ( | ) | const |
Definition at line 79 of file SkBlendModeBlender.cpp.
|
inline |
Definition at line 49 of file SkBlenderBase.h.
|
inlinevirtual |
Returns true if this SkBlender represents any SkBlendMode, and returns the blender's SkBlendMode in mode
. Returns false for other types of blends.
Definition at line 45 of file SkBlenderBase.h.
|
inlinevirtual |
Reimplemented in SkRuntimeBlender.
Definition at line 55 of file SkBlenderBase.h.
|
inlinestatic |
Definition at line 57 of file SkBlenderBase.h.
|
inlineoverridevirtual |
Implements SkFlattenable.
Definition at line 58 of file SkBlenderBase.h.
|
pure virtual |
Implemented in SkRuntimeBlender.
|
pure virtual |
Implemented in SkBlendModeBlender, and SkRuntimeBlender.