31 if (dist <= radius * 2) {
35 *
step *= radius / dist;
59 bool prevIsValid =
true;
68 switch (verb = iter.
next(pts)) {
72 dst->lineTo(lastCorner);
90 dst->quadTo(pts[0].fX, pts[0].fY, pts[0].fX +
step.fX,
106 dst->quadTo(pts[1], pts[2]);
126 dst->cubicTo(pts[1], pts[2], pts[3]);
131 if (firstStep.
fX || firstStep.
fY) {
132 dst->quadTo(lastCorner.
fX, lastCorner.
fY,
133 lastCorner.
fX + firstStep.
fX,
134 lastCorner.
fY + firstStep.
fY);
141 dst->lineTo(lastCorner);
167 buffer.writeScalar(fRadius);
171 const char*
getTypeName()
const override {
return "SkCornerPathEffect"; }
static int step(int x, SkScalar min, SkScalar max)
#define SkDEBUGFAIL(message)
static bool ComputeStep(const SkPoint &a, const SkPoint &b, SkScalar radius, SkPoint *step)
static bool SkIsFinite(T x, Pack... values)
SkCornerPathEffectImpl(SkScalar radius)
Factory getFactory() const override
const char * getTypeName() const override
bool computeFastBounds(SkRect *) const override
static sk_sp< SkFlattenable > CreateProc(SkReadBuffer &buffer)
bool onFilterPath(SkPath *dst, const SkPath &src, SkStrokeRec *, const SkRect *, const SkMatrix &) const override
void flatten(SkWriteBuffer &buffer) const override
static void RegisterFlattenables()
static sk_sp< SkPathEffect > Make(SkScalar radius)
sk_sp< SkFlattenable >(* Factory)(SkReadBuffer &)
static void Register(const char name[], Factory)
bool isClosedContour() const
Verb next(SkPoint pts[4])
SkScalar conicWeight() const
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
void set(float x, float y)
static float Distance(const SkPoint &a, const SkPoint &b)