7#ifndef SkConicalGradient_DEFINED
8#define SkConicalGradient_DEFINED
51 enum class Type { kRadial, kStrip, kFocal };
103 FocalData fFocalData;
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
void SkRegisterConicalGradientShaderFlattenable()
#define SK_FLATTENABLE_HOOKS(type)
static bool SkScalarNearlyZero(SkScalar x, SkScalar tolerance=SK_ScalarNearlyZero)
const SkPoint & getEndCenter() const
SkScalar getEndRadius() const
const SkPoint & getStartCenter() const
SkConicalGradient(const SkPoint &c0, SkScalar r0, const SkPoint &c1, SkScalar r1, const Descriptor &, Type, const SkMatrix &, const FocalData &)
SkScalar getDiffRadius() const
SkScalar getCenterX1() const
void flatten(SkWriteBuffer &buffer) const override
SkScalar getStartRadius() const
static bool MapToUnitX(const SkPoint &startCenter, const SkPoint &endCenter, SkMatrix *dstMatrix)
GradientType asGradient(GradientInfo *info, SkMatrix *localMatrix) const override
const FocalData & getFocalData() const
void appendGradientStages(SkArenaAlloc *alloc, SkRasterPipeline *tPipeline, SkRasterPipeline *postPipeline) const override
static sk_sp< SkShader > Create(const SkPoint &start, SkScalar startRadius, const SkPoint &end, SkScalar endRadius, const Descriptor &, const SkMatrix *localMatrix)
bool isOpaque() const override
unsigned useCenter Optional< SkMatrix > matrix
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
bool set(SkScalar r0, SkScalar r1, SkMatrix *matrix)
bool isNativelyFocal() const
bool isWellBehaved() const
bool isFocalOnCircle() const
static float Distance(const SkPoint &a, const SkPoint &b)