Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkWorkingColorSpaceShader Class Referencefinal

#include <SkWorkingColorSpaceShader.h>

Inheritance diagram for SkWorkingColorSpaceShader:
SkShaderBase SkShader SkFlattenable SkRefCnt SkRefCntBase

Public Member Functions

 SkWorkingColorSpaceShader (sk_sp< SkShader > shader, sk_sp< SkColorSpace > workingSpace)
 
ShaderType type () const override
 
sk_sp< SkShadershader () const
 
sk_sp< SkColorSpaceworkingSpace () const
 
- Public Member Functions inherited from SkShaderBase
 ~SkShaderBase () override
 
sk_sp< SkShadermakeInvertAlpha () const
 
sk_sp< SkShadermakeWithCTM (const SkMatrix &) const
 
virtual bool isConstant () const
 
virtual ShaderType type () const =0
 
virtual GradientType asGradient (GradientInfo *info=nullptr, SkMatrix *localMatrix=nullptr) const
 
ContextmakeContext (const ContextRec &, SkArenaAlloc *) const
 
bool asLuminanceColor (SkColor4f *) const
 
bool appendRootStages (const SkStageRec &rec, const SkMatrix &ctm) const
 
virtual bool appendStages (const SkStageRec &, const SkShaders::MatrixRec &) const =0
 
virtual SkImageonIsAImage (SkMatrix *, SkTileMode[2]) const
 
virtual SkRuntimeEffectasRuntimeEffect () const
 
Type getFlattenableType () const override
 
virtual sk_sp< SkShadermakeAsALocalMatrixShader (SkMatrix *localMatrix) const
 
- Public Member Functions inherited from SkShader
virtual bool isOpaque () const
 
SkImageisAImage (SkMatrix *localMatrix, SkTileMode xy[2]) const
 
bool isAImage () const
 
sk_sp< SkShadermakeWithLocalMatrix (const SkMatrix &) const
 
sk_sp< SkShadermakeWithColorFilter (sk_sp< SkColorFilter >) const
 
sk_sp< SkShadermakeWithWorkingColorSpace (sk_sp< SkColorSpace >) const
 
- Public Member Functions inherited from SkFlattenable
 SkFlattenable ()
 
virtual Factory getFactory () const =0
 
virtual const char * getTypeName () const =0
 
virtual void flatten (SkWriteBuffer &) const
 
virtual Type getFlattenableType () const =0
 
sk_sp< SkDataserialize (const SkSerialProcs *=nullptr) const
 
size_t serialize (void *memory, size_t memory_size, const SkSerialProcs *=nullptr) 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 SkShaderBase
enum class  ShaderType { M }
 
enum class  GradientType { kNone , M }
 
enum  Flags { kOpaqueAlpha_Flag = 1 << 0 }
 
- Public Types inherited from SkFlattenable
enum  Type {
  kSkColorFilter_Type , kSkBlender_Type , kSkDrawable_Type , kSkDrawLooper_Type ,
  kSkImageFilter_Type , kSkMaskFilter_Type , kSkPathEffect_Type , kSkShader_Type
}
 
typedef sk_sp< SkFlattenable >(* Factory) (SkReadBuffer &)
 
- Static Public Member Functions inherited from SkShaderBase
static Type GetFlattenableType ()
 
static sk_sp< SkShaderBaseDeserialize (const void *data, size_t size, const SkDeserialProcs *procs=nullptr)
 
static void RegisterFlattenables ()
 
static SkMatrix ConcatLocalMatrices (const SkMatrix &parentLM, const SkMatrix &childLM)
 
- Static Public Member Functions inherited from SkFlattenable
static Factory NameToFactory (const char name[])
 
static const char * FactoryToName (Factory)
 
static void Register (const char name[], Factory)
 
static sk_sp< SkFlattenableDeserialize (Type, const void *data, size_t length, const SkDeserialProcs *procs=nullptr)
 
- Protected Member Functions inherited from SkShaderBase
 SkShaderBase ()
 
void flatten (SkWriteBuffer &) const override
 
virtual bool onAsLuminanceColor (SkColor4f *) const
 

Detailed Description

Definition at line 23 of file SkWorkingColorSpaceShader.h.

Constructor & Destructor Documentation

◆ SkWorkingColorSpaceShader()

SkWorkingColorSpaceShader::SkWorkingColorSpaceShader ( sk_sp< SkShader shader,
sk_sp< SkColorSpace workingSpace 
)
inline

Definition at line 25 of file SkWorkingColorSpaceShader.h.

26 : fShader(std::move(shader)), fWorkingSpace(std::move(workingSpace)) {
27 SkASSERT(fWorkingSpace);
28 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
sk_sp< SkShader > shader() const
sk_sp< SkColorSpace > workingSpace() const

Member Function Documentation

◆ shader()

sk_sp< SkShader > SkWorkingColorSpaceShader::shader ( ) const
inline

Definition at line 32 of file SkWorkingColorSpaceShader.h.

32{ return fShader; }

◆ type()

ShaderType SkWorkingColorSpaceShader::type ( ) const
inlineoverridevirtual

Implements SkShaderBase.

Definition at line 30 of file SkWorkingColorSpaceShader.h.

30{ return ShaderType::kWorkingColorSpace; }

◆ workingSpace()

sk_sp< SkColorSpace > SkWorkingColorSpaceShader::workingSpace ( ) const
inline

Definition at line 33 of file SkWorkingColorSpaceShader.h.

33{ return fWorkingSpace; }

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