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

Public Member Functions

 PrecompileMatrixConvolutionShader (sk_sp< PrecompileShader > wrapped)
 
- 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 889 of file PrecompileShader.cpp.

Constructor & Destructor Documentation

◆ PrecompileMatrixConvolutionShader()

skgpu::graphite::PrecompileMatrixConvolutionShader::PrecompileMatrixConvolutionShader ( sk_sp< PrecompileShader wrapped)
inline

Definition at line 891 of file PrecompileShader.cpp.

892 : fWrapped(std::move(wrapped)) {
893 fNumWrappedCombos = fWrapped->priv().numCombinations();
894
895 // When the matrix convolution ImageFilter uses a texture we know it will only ever
896 // be SkFilterMode::kNearest and SkTileMode::kClamp.
897 // TODO: add a PrecompileImageShaderFlags to further limit the raw image shader
898 // combinations. Right now we're getting two combinations for the raw shader
899 // (sk_image_shader and sk_hw_image_shader).
900 fRawImageShader =
902 fNumRawImageShaderCombos = fRawImageShader->priv().numCombinations();
903 }
static sk_sp< GrTextureProxy > wrapped(skiatest::Reporter *reporter, GrRecordingContext *rContext, GrProxyProvider *proxyProvider, SkBackingFit fit)
sk_sp< PrecompileShader > RawImage(SkEnumBitMask< PrecompileImageShaderFlags >)

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