Flutter Engine
The Flutter Engine
|
Public Member Functions | |
DisableColorXP () | |
Public Member Functions inherited from GrXferProcessor | |
void | addToKey (const GrShaderCaps &, skgpu::KeyBuilder *, const GrSurfaceOrigin *originIfDstTexture, bool usesInputAttachmentForDstRead) const |
virtual GrXferBarrierType | xferBarrierType (const GrCaps &caps) const |
skgpu::BlendInfo | getBlendInfo () const |
bool | willReadDstColor () const |
bool | hasSecondaryOutput () const |
bool | isLCD () const |
bool | isEqual (const GrXferProcessor &that) const |
Public Member Functions inherited from GrProcessor | |
virtual | ~GrProcessor ()=default |
void * | operator new (size_t size) |
void * | operator new (size_t object_size, size_t footer_size) |
void | operator delete (void *target) |
void * | operator new (size_t size, void *placement) |
void | operator delete (void *target, void *placement) |
template<typename T > | |
const T & | cast () const |
ClassID | classID () const |
Public Member Functions inherited from GrNonAtomicRef< GrXferProcessor > | |
GrNonAtomicRef () | |
bool | unique () const |
int | refCnt () const |
void | ref () const |
void | unref () const |
Public Member Functions inherited from SkNoncopyable | |
SkNoncopyable ()=default | |
SkNoncopyable (SkNoncopyable &&)=default | |
SkNoncopyable & | operator= (SkNoncopyable &&)=default |
Private Member Functions | |
const char * | name () const override |
bool | onIsEqual (const GrXferProcessor &xpBase) const override |
void | onAddToKey (const GrShaderCaps &, skgpu::KeyBuilder *) const override |
void | onGetBlendInfo (skgpu::BlendInfo *blendInfo) const override |
std::unique_ptr< ProgramImpl > | makeProgramImpl () const override |
This xfer processor disables color writing. Thus color and coverage and ignored and no blending occurs. This XP is usful for things like stenciling.
Definition at line 26 of file GrDisableColorXP.cpp.
|
inline |
Definition at line 28 of file GrDisableColorXP.cpp.
|
overrideprivatevirtual |
Returns a new instance of the appropriate GL implementation class for the given GrXferProcessor; caller is responsible for deleting the object.
Implements GrXferProcessor.
Definition at line 42 of file GrDisableColorXP.cpp.
|
inlineoverrideprivatevirtual |
Human-meaningful string to identify this processor; may be embedded in generated shader code and must be a legal SkSL identifier prefix.
Implements GrProcessor.
Definition at line 31 of file GrDisableColorXP.cpp.
|
inlineoverrideprivatevirtual |
Adds a key on the skgpu::KeyBuilder that reflects any variety in the code that may be emitted by the xfer processor subclass.
Implements GrXferProcessor.
Definition at line 33 of file GrDisableColorXP.cpp.
|
inlineoverrideprivatevirtual |
If we are not performing a dst read, retrieves the fixed-function blend state required by the subclass. When using dst reads, the base class controls the fixed-function blend state and this method will not be called. The BlendInfo struct comes initialized to "no blending".
Reimplemented from GrXferProcessor.
Definition at line 34 of file GrDisableColorXP.cpp.
|
inlineoverrideprivatevirtual |