#include <SkRadialGradient.h>
|
| SkRadialGradient (const SkPoint ¢er, SkScalar radius, const Descriptor &) |
|
GradientType | asGradient (GradientInfo *info, SkMatrix *matrix) const override |
|
const SkPoint & | center () const |
|
SkScalar | radius () const |
|
| 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 |
|
| ~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 |
|
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 |
|
| 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 |
|
| SkRefCntBase () |
|
virtual | ~SkRefCntBase () |
|
bool | unique () const |
|
void | ref () const |
|
void | unref () const |
|
|
using | Interpolation = SkGradientShader::Interpolation |
|
enum class | ShaderType { M
} |
|
enum class | GradientType { kNone
, M
} |
|
enum | Flags { kOpaqueAlpha_Flag = 1 << 0
} |
|
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 bool | ValidGradient (const SkColor4f colors[], int count, SkTileMode tileMode, const Interpolation &interpolation) |
|
static sk_sp< SkShader > | MakeDegenerateGradient (const SkColor4f colors[], const SkScalar pos[], int colorCount, sk_sp< SkColorSpace > colorSpace, SkTileMode mode) |
|
static void | AppendGradientFillStages (SkRasterPipeline *p, SkArenaAlloc *alloc, const SkPMColor4f *colors, const SkScalar *positions, int count) |
|
static void | AppendInterpolatedToDstStages (SkRasterPipeline *p, SkArenaAlloc *alloc, bool colorsAreOpaque, const Interpolation &interpolation, const SkColorSpace *intermediateColorSpace, const SkColorSpace *dstColorSpace) |
|
static Type | GetFlattenableType () |
|
static sk_sp< SkShaderBase > | Deserialize (const void *data, size_t size, const SkDeserialProcs *procs=nullptr) |
|
static void | RegisterFlattenables () |
|
static SkMatrix | ConcatLocalMatrices (const SkMatrix &parentLM, const SkMatrix &childLM) |
|
static Factory | NameToFactory (const char name[]) |
|
static const char * | FactoryToName (Factory) |
|
static void | Register (const char name[], Factory) |
|
static sk_sp< SkFlattenable > | Deserialize (Type, const void *data, size_t length, const SkDeserialProcs *procs=nullptr) |
|
SkColor4f * | fColors |
|
SkScalar * | fPositions |
|
int | fColorCount |
|
sk_sp< SkColorSpace > | fColorSpace |
|
Interpolation | fInterpolation |
|
bool | fFirstStopIsImplicit |
|
bool | fLastStopIsImplicit |
|
static constexpr SkScalar | kDegenerateThreshold = SK_Scalar1 / (1 << 15) |
|
const SkMatrix | fPtsToUnit |
|
SkTileMode | fTileMode |
|
Definition at line 21 of file SkRadialGradient.h.
◆ SkRadialGradient() [1/2]
Definition at line 38 of file SkRadialGradient.cpp.
static SkMatrix rad_to_unit_matrix(const SkPoint ¢er, SkScalar radius)
SkGradientBaseShader(const Descriptor &desc, const SkMatrix &ptsToUnit)
const SkPoint & center() const
◆ SkRadialGradient() [2/2]
◆ appendGradientStages()
◆ asGradient()
Reimplemented from SkShaderBase.
Definition at line 43 of file SkRadialGradient.cpp.
44 {
47 info->fPoint[0] = fCenter;
48 info->fRadius[0] = fRadius;
49 }
50 if (localMatrix) {
52 }
53 return GradientType::kRadial;
54}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
void commonAsAGradient(GradientInfo *) const
static const SkMatrix & I()
◆ center()
const SkPoint & SkRadialGradient::center |
( |
| ) |
const |
|
inline |
◆ flatten()
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 78 of file SkRadialGradient.cpp.
78 {
80 buffer.writePoint(fCenter);
81 buffer.writeScalar(fRadius);
82}
void flatten(SkWriteBuffer &) const override
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
◆ radius()
SkScalar SkRadialGradient::radius |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: