Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | Private Member Functions | Friends | List of all members
skgpu::graphite::PrecompileImageFilter Class Referenceabstract

#include <PrecompileInternal.h>

Inheritance diagram for skgpu::graphite::PrecompileImageFilter:
skgpu::graphite::PrecompileBase SkRefCnt SkRefCntBase skgpu::graphite::PrecompileBlendFilterImageFilter skgpu::graphite::PrecompileBlurImageFilter skgpu::graphite::PrecompileColorFilterImageFilter skgpu::graphite::PrecompileDisplacementMapImageFilter skgpu::graphite::PrecompileLightingImageFilter skgpu::graphite::PrecompileMatrixConvolutionImageFilter skgpu::graphite::PrecompileMorphologyImageFilter

Public Member Functions

virtual sk_sp< PrecompileColorFilterisColorFilterNode () const
 
int countInputs () const
 
const PrecompileImageFiltergetInput (int index) 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

 PrecompileImageFilter (SkSpan< sk_sp< PrecompileImageFilter > > inputs)
 
- 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
 

Private Member Functions

virtual void onCreatePipelines (const KeyContext &, PipelineDataGatherer *, const PaintOptionsPriv::ProcessCombination &) const =0
 

Friends

class PaintOptions
 

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 43 of file PrecompileInternal.h.

Constructor & Destructor Documentation

◆ PrecompileImageFilter()

skgpu::graphite::PrecompileImageFilter::PrecompileImageFilter ( SkSpan< sk_sp< PrecompileImageFilter > >  inputs)
inlineprotected

Definition at line 55 of file PrecompileInternal.h.

57 fInputs.reset(inputs.size());
58 for (int i = 0; i < (int) inputs.size(); ++i) {
59 fInputs[i] = inputs[i];
60 }
61 }

Member Function Documentation

◆ countInputs()

int skgpu::graphite::PrecompileImageFilter::countInputs ( ) const
inline

Definition at line 47 of file PrecompileInternal.h.

47{ return fInputs.count(); }

◆ getInput()

const PrecompileImageFilter * skgpu::graphite::PrecompileImageFilter::getInput ( int  index) const
inline

Definition at line 49 of file PrecompileInternal.h.

49 {
50 SkASSERT(index < this->countInputs());
51 return fInputs[index].get();
52 }
#define SkASSERT(cond)
Definition: SkAssert.h:116

◆ isColorFilterNode()

virtual sk_sp< PrecompileColorFilter > skgpu::graphite::PrecompileImageFilter::isColorFilterNode ( ) const
inlinevirtual

Definition at line 45 of file PrecompileInternal.h.

45{ return nullptr; }

◆ onCreatePipelines()

virtual void skgpu::graphite::PrecompileImageFilter::onCreatePipelines ( const KeyContext ,
PipelineDataGatherer ,
const PaintOptionsPriv::ProcessCombination  
) const
privatepure virtual

Friends And Related Function Documentation

◆ PaintOptions

friend class PaintOptions
friend

Definition at line 64 of file PrecompileInternal.h.


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