27 SkPoint projectedCenter = pivot + parallel;
39 path->setLastPt(pivot.
fX + normal.fX + parallel.
fX, pivot.
fY + normal.fY + parallel.
fY);
40 path->lineTo(pivot.
fX - normal.fX + parallel.
fX, pivot.
fY - normal.fY + parallel.
fY);
42 path->lineTo(pivot.
fX + normal.fX + parallel.
fX, pivot.
fY + normal.fY + parallel.
fY);
43 path->lineTo(pivot.
fX - normal.fX + parallel.
fX, pivot.
fY - normal.fY + parallel.
fY);
51 return before.
fX * after.
fY > before.
fY * after.
fX;
90 afterUnitNormal.
scale(radius, &after);
124 matrix.setScale(radius, radius);
137#define kOneOverSqrt2 (0.707106781f)
142 bool prevIsLine,
bool currIsLine) {
175 mid = (before + after) * radius;
188 if (sinHalfAngle < invMiterLimit) {
195 mid.
set(after.
fY - before.
fY, before.
fX - after.
fX);
200 mid.
set(before.
fX + after.
fX, before.
fY + after.
fY);
227 return gCappers[cap];
236 return gJoiners[
join];
@ kCW_SkRotationDirection
@ kCCW_SkRotationDirection
void swap(sk_sp< T > &a, sk_sp< T > &b)
static bool SkScalarNearlyZero(SkScalar x, SkScalar tolerance=SK_ScalarNearlyZero)
#define SK_ScalarRoot2Over2
static void MiterJoiner(SkPath *outer, SkPath *inner, const SkVector &beforeUnitNormal, const SkPoint &pivot, const SkVector &afterUnitNormal, SkScalar radius, SkScalar invMiterLimit, bool prevIsLine, bool currIsLine)
static AngleType Dot2AngleType(SkScalar dot)
static bool is_clockwise(const SkVector &before, const SkVector &after)
static void RoundCapper(SkPath *path, const SkPoint &pivot, const SkVector &normal, const SkPoint &stop, SkPath *)
static void HandleInnerJoin(SkPath *inner, const SkPoint &pivot, const SkVector &after)
static void BluntJoiner(SkPath *outer, SkPath *inner, const SkVector &beforeUnitNormal, const SkPoint &pivot, const SkVector &afterUnitNormal, SkScalar radius, SkScalar invMiterLimit, bool, bool)
static void RoundJoiner(SkPath *outer, SkPath *inner, const SkVector &beforeUnitNormal, const SkPoint &pivot, const SkVector &afterUnitNormal, SkScalar radius, SkScalar invMiterLimit, bool, bool)
static void ButtCapper(SkPath *path, const SkPoint &pivot, const SkVector &normal, const SkPoint &stop, SkPath *)
static void SquareCapper(SkPath *path, const SkPoint &pivot, const SkVector &normal, const SkPoint &stop, SkPath *otherPath)
static constexpr int kCapCount
static constexpr int kJoinCount
void setLastPt(SkScalar x, SkScalar y)
SkPath & lineTo(SkScalar x, SkScalar y)
SkPath & conicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar w)
static void RotateCW(const SkPoint &src, SkPoint *dst)
void(* JoinProc)(SkPath *outer, SkPath *inner, const SkVector &beforeUnitNormal, const SkPoint &pivot, const SkVector &afterUnitNormal, SkScalar radius, SkScalar invMiterLimit, bool prevIsLine, bool currIsLine)
static CapProc CapFactory(SkPaint::Cap)
static JoinProc JoinFactory(SkPaint::Join)
void(* CapProc)(SkPath *path, const SkPoint &pivot, const SkVector &normal, const SkPoint &stop, SkPath *otherPath)
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 Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets dir
SINT T dot(const Vec< N, T > &a, const Vec< N, T > &b)
static SkString join(const CommandLineFlags::StringArray &)
static int BuildUnitArc(const SkVector &start, const SkVector &stop, SkRotationDirection, const SkMatrix *, SkConic conics[kMaxConicsForArc])
bool setLength(float length)
static float DotProduct(const SkVector &a, const SkVector &b)
void set(float x, float y)
void scale(float scale, SkPoint *dst) const