Flutter Engine
The Flutter Engine
|
#include <SkSweepGradient.h>
Public Member Functions | |
SkSweepGradient (const SkPoint ¢er, SkScalar t0, SkScalar t1, const Descriptor &) | |
GradientType | asGradient (GradientInfo *info, SkMatrix *localMatrix) const override |
const SkPoint & | center () const |
SkScalar | tBias () const |
SkScalar | tScale () const |
Public Member Functions inherited from SkGradientBaseShader | |
SkGradientBaseShader (const Descriptor &desc, const SkMatrix &ptsToUnit) | |
~SkGradientBaseShader () override | |
ShaderType | type () const final |
bool | isOpaque () const override |
bool | interpolateInPremul () const |
const SkMatrix & | getGradientMatrix () const |
int | getColorCount () const |
const float * | getPositions () const |
const Interpolation & | getInterpolation () const |
SkScalar | getPos (int i) const |
SkColor | getLegacyColor (int i) const |
bool | colorsAreOpaque () const |
SkTileMode | getTileMode () const |
const SkBitmap & | cachedBitmap () const |
void | setCachedBitmap (SkBitmap b) const |
Public Member Functions inherited from SkShaderBase | |
~SkShaderBase () override | |
sk_sp< SkShader > | makeInvertAlpha () const |
sk_sp< SkShader > | makeWithCTM (const SkMatrix &) const |
virtual bool | isConstant () const |
virtual ShaderType | type () const =0 |
virtual GradientType | asGradient (GradientInfo *info=nullptr, SkMatrix *localMatrix=nullptr) const |
Context * | makeContext (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 SkImage * | onIsAImage (SkMatrix *, SkTileMode[2]) const |
virtual SkRuntimeEffect * | asRuntimeEffect () const |
Type | getFlattenableType () const override |
virtual sk_sp< SkShader > | makeAsALocalMatrixShader (SkMatrix *localMatrix) const |
Public Member Functions inherited from SkShader | |
virtual bool | isOpaque () const |
SkImage * | isAImage (SkMatrix *localMatrix, SkTileMode xy[2]) const |
bool | isAImage () const |
sk_sp< SkShader > | makeWithLocalMatrix (const SkMatrix &) const |
sk_sp< SkShader > | makeWithColorFilter (sk_sp< SkColorFilter >) const |
sk_sp< SkShader > | makeWithWorkingColorSpace (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< SkData > | serialize (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 &buffer) const override |
void | appendGradientStages (SkArenaAlloc *alloc, SkRasterPipeline *tPipeline, SkRasterPipeline *postPipeline) const override |
Protected Member Functions inherited from SkGradientBaseShader | |
void | flatten (SkWriteBuffer &) const override |
void | commonAsAGradient (GradientInfo *) const |
bool | onAsLuminanceColor (SkColor4f *) const override |
bool | appendStages (const SkStageRec &, const SkShaders::MatrixRec &) const override |
virtual void | appendGradientStages (SkArenaAlloc *alloc, SkRasterPipeline *tPipeline, SkRasterPipeline *postPipeline) const =0 |
Protected Member Functions inherited from SkShaderBase | |
SkShaderBase () | |
void | flatten (SkWriteBuffer &) const override |
virtual bool | onAsLuminanceColor (SkColor4f *) const |
Definition at line 21 of file SkSweepGradient.h.
SkSweepGradient::SkSweepGradient | ( | const SkPoint & | center, |
SkScalar | t0, | ||
SkScalar | t1, | ||
const Descriptor & | desc | ||
) |
Definition at line 33 of file SkSweepGradient.cpp.
|
overrideprotectedvirtual |
Implements SkGradientBaseShader.
Definition at line 94 of file SkSweepGradient.cpp.
|
overridevirtual |
Reimplemented from SkShaderBase.
Definition at line 44 of file SkSweepGradient.cpp.
|
inline |
Definition at line 27 of file SkSweepGradient.h.
|
overrideprotectedvirtual |
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 SkGradientBaseShader.
Definition at line 87 of file SkSweepGradient.cpp.
|
inline |
Definition at line 28 of file SkSweepGradient.h.
|
inline |
Definition at line 29 of file SkSweepGradient.h.