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

#include <SkGaussianColorFilter.h>

Inheritance diagram for SkGaussianColorFilter:
SkColorFilterBase SkColorFilter SkFlattenable SkRefCnt SkRefCntBase

Public Member Functions

 SkGaussianColorFilter ()
 
bool appendStages (const SkStageRec &rec, bool shaderIsOpaque) const override
 
SkColorFilterBase::Type type () const override
 
- Public Member Functions inherited from SkColorFilterBase
virtual bool appendStages (const SkStageRec &rec, bool shaderIsOpaque) const =0
 
virtual bool onIsAlphaUnchanged () const
 
virtual Type type () const =0
 
bool affectsTransparentBlack () const
 
virtual SkRuntimeEffectasRuntimeEffect () const
 
SkFlattenable::Type getFlattenableType () const override
 
virtual SkPMColor4f onFilterColor4f (const SkPMColor4f &color, SkColorSpace *dstCS) const
 
- Public Member Functions inherited from SkColorFilter
bool asAColorMode (SkColor *color, SkBlendMode *mode) const
 
bool asAColorMatrix (float matrix[20]) const
 
bool isAlphaUnchanged () const
 
SkColor filterColor (SkColor) const
 
SkColor4f filterColor4f (const SkColor4f &srcColor, SkColorSpace *srcCS, SkColorSpace *dstCS) const
 
sk_sp< SkColorFiltermakeComposed (sk_sp< SkColorFilter > inner) const
 
sk_sp< SkColorFiltermakeWithWorkingColorSpace (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
 

Protected Member Functions

void flatten (SkWriteBuffer &) const override
 
- Protected Member Functions inherited from SkColorFilterBase
 SkColorFilterBase ()
 
virtual bool onAsAColorMatrix (float[20]) const
 
virtual bool onAsAColorMode (SkColor *color, SkBlendMode *bmode) const
 

Additional Inherited Members

- Public Types inherited from SkColorFilterBase
enum class  Type { kNoop , M }
 
- 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 SkColorFilterBase
static SkFlattenable::Type GetFlattenableType ()
 
static sk_sp< SkColorFilterDeserialize (const void *data, size_t size, const SkDeserialProcs *procs=nullptr)
 
- Static Public Member Functions inherited from SkColorFilter
static sk_sp< SkColorFilterDeserialize (const void *data, size_t size, const SkDeserialProcs *procs=nullptr)
 
- 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)
 

Detailed Description

Remaps the input color's alpha to a Gaussian ramp and then outputs premul white using the remapped alpha.

Definition at line 22 of file SkGaussianColorFilter.h.

Constructor & Destructor Documentation

◆ SkGaussianColorFilter()

SkGaussianColorFilter::SkGaussianColorFilter ( )

Definition at line 20 of file SkGaussianColorFilter.cpp.

Member Function Documentation

◆ appendStages()

bool SkGaussianColorFilter::appendStages ( const SkStageRec rec,
bool  shaderIsOpaque 
) const
overridevirtual

Implements SkColorFilterBase.

Definition at line 22 of file SkGaussianColorFilter.cpp.

22 {
23 rec.fPipeline->append(SkRasterPipelineOp::gauss_a_to_rgba);
24 return true;
25}
void append(SkRasterPipelineOp, void *=nullptr)
SkRasterPipeline * fPipeline
Definition: SkEffectPriv.h:21

◆ flatten()

void SkGaussianColorFilter::flatten ( SkWriteBuffer ) const
inlineoverrideprotectedvirtual

Override this if your subclass needs to record data that it will need to recreate itself from its CreateProc (returned by getFactory()).

DEPRECATED public : will move to protected ... use serialize() instead

Reimplemented from SkFlattenable.

Definition at line 31 of file SkGaussianColorFilter.h.

31{}

◆ type()

SkColorFilterBase::Type SkGaussianColorFilter::type ( ) const
inlineoverridevirtual

Implements SkColorFilterBase.

Definition at line 28 of file SkGaussianColorFilter.h.

28{ return SkColorFilterBase::Type::kGaussian; }

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