Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | List of all members
skgpu::graphite::PrecompileBlendModeBlender Class Referencefinal
Inheritance diagram for skgpu::graphite::PrecompileBlendModeBlender:
skgpu::graphite::PrecompileBlender skgpu::graphite::PrecompileBase SkRefCnt SkRefCntBase

Public Member Functions

 PrecompileBlendModeBlender (SkBlendMode blendMode)
 
- Public Member Functions inherited from skgpu::graphite::PrecompileBlender
PrecompileBlenderPriv priv ()
 
const PrecompileBlenderPriv priv () const
 
- Public Member Functions inherited from skgpu::graphite::PrecompileBase
Type type () const
 
PrecompileBasePriv priv ()
 
const PrecompileBasePriv priv () const
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Protected Member Functions

std::optional< SkBlendModeasBlendMode () const final
 
void addToKey (const KeyContext &keyContext, PaintParamsKeyBuilder *builder, PipelineDataGatherer *gatherer, int desiredCombination) const final
 
- Protected Member Functions inherited from skgpu::graphite::PrecompileBlender
virtual std::optional< SkBlendModeasBlendMode () const
 
 PrecompileBlender ()
 
 ~PrecompileBlender () override
 
- Protected Member Functions inherited from skgpu::graphite::PrecompileBase
 PrecompileBase (Type type)
 
virtual int numIntrinsicCombinations () const
 
virtual int numChildCombinations () const
 
int numCombinations () const
 
virtual void addToKey (const KeyContext &, PaintParamsKeyBuilder *, PipelineDataGatherer *, int desiredCombination) const =0
 

Additional Inherited Members

- Public Types inherited from skgpu::graphite::PrecompileBase
enum class  Type {
  kBlender , kColorFilter , kImageFilter , kMaskFilter ,
  kShader
}
 
- Static Protected Member Functions inherited from skgpu::graphite::PrecompileBase
template<typename T >
static std::pair< sk_sp< T >, intSelectOption (SkSpan< const sk_sp< T > > options, int desiredOption)
 
template<typename T >
static void AddToKey (const KeyContext &, PaintParamsKeyBuilder *, PipelineDataGatherer *, SkSpan< const sk_sp< T > > options, int desiredOption)
 

Detailed Description

Definition at line 19 of file PrecompileBlender.cpp.

Constructor & Destructor Documentation

◆ PrecompileBlendModeBlender()

skgpu::graphite::PrecompileBlendModeBlender::PrecompileBlendModeBlender ( SkBlendMode  blendMode)
inline

Definition at line 21 of file PrecompileBlender.cpp.

21: fBlendMode(blendMode) {}

Member Function Documentation

◆ addToKey()

void skgpu::graphite::PrecompileBlendModeBlender::addToKey ( const KeyContext keyContext,
PaintParamsKeyBuilder builder,
PipelineDataGatherer gatherer,
int  desiredCombination 
) const
inlinefinalprotectedvirtual

Implements skgpu::graphite::PrecompileBase.

Definition at line 26 of file PrecompileBlender.cpp.

29 {
30 SkASSERT(desiredCombination == 0); // The blend mode blender only ever has one combination
31
32 AddModeBlend(keyContext, builder, gatherer, fBlendMode);
33 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
void AddModeBlend(const KeyContext &keyContext, PaintParamsKeyBuilder *builder, PipelineDataGatherer *gatherer, SkBlendMode bm)

◆ asBlendMode()

std::optional< SkBlendMode > skgpu::graphite::PrecompileBlendModeBlender::asBlendMode ( ) const
inlinefinalprotectedvirtual

Reimplemented from skgpu::graphite::PrecompileBlender.

Definition at line 24 of file PrecompileBlender.cpp.

24{ return fBlendMode; }

The documentation for this class was generated from the following file: