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

Public Member Functions

 PrecompileMorphologyShader (sk_sp< PrecompileShader > wrapped, SkKnownRuntimeEffects::StableKey stableKey)
 
- Public Member Functions inherited from skgpu::graphite::PrecompileShader
sk_sp< PrecompileShadermakeWithLocalMatrix ()
 
sk_sp< PrecompileShadermakeWithColorFilter (sk_sp< PrecompileColorFilter >)
 
sk_sp< PrecompileShadermakeWithWorkingColorSpace (sk_sp< SkColorSpace >)
 
PrecompileShaderPriv priv ()
 
const PrecompileShaderPriv 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
 

Additional Inherited Members

- Public Types inherited from skgpu::graphite::PrecompileBase
enum class  Type {
  kBlender , kColorFilter , kImageFilter , kMaskFilter ,
  kShader
}
 
- Protected Member Functions inherited from skgpu::graphite::PrecompileShader
 PrecompileShader ()
 
 ~PrecompileShader () override
 
virtual bool isConstant (int) const
 
virtual bool isALocalMatrixShader () const
 
- 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
 
- 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 964 of file PrecompileShader.cpp.

Constructor & Destructor Documentation

◆ PrecompileMorphologyShader()

skgpu::graphite::PrecompileMorphologyShader::PrecompileMorphologyShader ( sk_sp< PrecompileShader wrapped,
SkKnownRuntimeEffects::StableKey  stableKey 
)
inline

Definition at line 966 of file PrecompileShader.cpp.

968 : fWrapped(std::move(wrapped))
969 , fStableKey(stableKey) {
970 fNumWrappedCombos = fWrapped->priv().numCombinations();
971 SkASSERT(stableKey == SkKnownRuntimeEffects::StableKey::kLinearMorphology ||
972 stableKey == SkKnownRuntimeEffects::StableKey::kSparseMorphology);
973 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
static sk_sp< GrTextureProxy > wrapped(skiatest::Reporter *reporter, GrRecordingContext *rContext, GrProxyProvider *proxyProvider, SkBackingFit fit)

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