29#define MAX_REASONABLE_ITERATIONS 100000
41 while (distance < length && --governor >= 0) {
68 bool computeFastBounds(
SkRect*)
const override {
return false; }
87 if (phase > advance) {
91 if (phase > advance) {
94 phase = advance - phase;
97 if (phase >= advance) {
103 fInitialOffset = phase;
114 return fInitialOffset;
129 buffer.writeScalar(fAdvance);
131 buffer.writeScalar(fInitialOffset);
136 const char*
getTypeName()
const override {
return "SkPath1DPathEffect"; }
164 matrix.setSinCos(tangent.
fY, tangent.
fX, 0, 0);
165 matrix.preTranslate(-sx, 0);
188 dst->moveTo(dstP[0]);
198 dst->quadTo(dstP[0], dstP[1]);
208 dst->cubicTo(dstP[0], dstP[1], dstP[2]);
223#if defined(SK_BUILD_FOR_FUZZER)
224 if (
dst->countPoints() > 100000) {
252 if (advance <= 0 || !
SkIsFinite(advance, phase) ||
path.isEmpty()) {
static bool morphpoints(SkPoint dst[], const SkPoint src[], int count, SkPathMeasure &meas, SkScalar dist)
static void morphpath(SkPath *dst, const SkPath &src, SkPathMeasure &meas, SkScalar dist)
#define MAX_REASONABLE_ITERATIONS
#define SkDEBUGFAIL(message)
#define SK_REGISTER_FLATTENABLE(type)
static bool SkIsFinite(T x, Pack... values)
#define SkScalarMod(x, y)
#define SkScalarAve(a, b)
virtual SkScalar next(SkPath *dst, SkScalar dist, SkPathMeasure &) const =0
bool onFilterPath(SkPath *dst, const SkPath &src, SkStrokeRec *, const SkRect *, const SkMatrix &) const override
virtual SkScalar begin(SkScalar contourLength) const =0
sk_sp< SkFlattenable >(* Factory)(SkReadBuffer &)
SkPath1DPathEffectImpl(const SkPath &path, SkScalar advance, SkScalar phase, SkPath1DPathEffect::Style style)
void flatten(SkWriteBuffer &buffer) const override
SkScalar next(SkPath *, SkScalar, SkPathMeasure &) const override
const char * getTypeName() const override
bool onFilterPath(SkPath *dst, const SkPath &src, SkStrokeRec *rec, const SkRect *cullRect, const SkMatrix &ctm) const override
static sk_sp< SkFlattenable > CreateProc(SkReadBuffer &buffer)
Factory getFactory() const override
SkScalar begin(SkScalar contourLength) const override
static void RegisterFlattenables()
static sk_sp< SkPathEffect > Make(const SkPath &path, SkScalar advance, SkScalar phase, Style)
bool getMatrix(SkScalar distance, SkMatrix *matrix, MatrixFlags flags=kGetPosAndTan_MatrixFlag)
bool getPosTan(SkScalar distance, SkPoint *position, SkVector *tangent)
Verb next(SkPoint pts[4])
SkScalar conicWeight() const
uint32_t getGenerationID() const
void updateBoundsCache() const
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
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)