#include <SkLinearGradient.h>
|
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 SkLinearGradient.h.
◆ SkLinearGradient() [1/2]
◆ SkLinearGradient() [2/2]
◆ appendGradientStages()
◆ asGradient()
Reimplemented from SkShaderBase.
Definition at line 82 of file SkLinearGradient.cpp.
83 {
86 info->fPoint[0] = fStart;
87 info->fPoint[1] = fEnd;
88 }
89 if (localMatrix) {
91 }
92 return GradientType::kLinear;
93}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
void commonAsAGradient(GradientInfo *) const
static const SkMatrix & I()
◆ end()
const SkPoint & SkLinearGradient::end |
( |
| ) |
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 71 of file SkLinearGradient.cpp.
71 {
75}
void flatten(SkWriteBuffer &) const override
static const uint8_t buffer[]
◆ start()
const SkPoint & SkLinearGradient::start |
( |
| ) |
const |
|
inline |
◆ SkGradientShader
The documentation for this class was generated from the following files: