Go to the source code of this file.
|
static void | ButtCapper (SkPath *path, const SkPoint &pivot, const SkVector &normal, const SkPoint &stop, SkPath *) |
|
static void | RoundCapper (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 bool | is_clockwise (const SkVector &before, const SkVector &after) |
|
static AngleType | Dot2AngleType (SkScalar dot) |
|
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 | MiterJoiner (SkPath *outer, SkPath *inner, const SkVector &beforeUnitNormal, const SkPoint &pivot, const SkVector &afterUnitNormal, SkScalar radius, SkScalar invMiterLimit, bool prevIsLine, bool currIsLine) |
|
◆ kOneOverSqrt2
#define kOneOverSqrt2 (0.707106781f) |
◆ AngleType
Enumerator |
---|
kNearly180_AngleType | |
kSharp_AngleType | |
kShallow_AngleType | |
kNearlyLine_AngleType | |
Definition at line 54 of file SkStrokerPriv.cpp.
◆ BluntJoiner()
Definition at line 86 of file SkStrokerPriv.cpp.
88 {
90 afterUnitNormal.
scale(radius, &after);
91
96 }
97
100}
void swap(sk_sp< T > &a, sk_sp< T > &b)
static bool is_clockwise(const SkVector &before, const SkVector &after)
static void HandleInnerJoin(SkPath *inner, const SkPoint &pivot, const SkVector &after)
SkPath & lineTo(SkScalar x, SkScalar y)
void scale(float scale, SkPoint *dst) const
◆ ButtCapper()
Definition at line 17 of file SkStrokerPriv.cpp.
18 {
20}
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
◆ Dot2AngleType()
Definition at line 61 of file SkStrokerPriv.cpp.
61 {
62
63
64
67 } else {
69 }
70}
static bool SkScalarNearlyZero(SkScalar x, SkScalar tolerance=SK_ScalarNearlyZero)
SINT T dot(const Vec< N, T > &a, const Vec< N, T > &b)
◆ HandleInnerJoin()
Definition at line 72 of file SkStrokerPriv.cpp.
72 {
73#if 1
74
75
76
77
78
79
81#endif
82
84}
◆ is_clockwise()
◆ MiterJoiner()
Definition at line 139 of file SkStrokerPriv.cpp.
142 {
143
150 bool ccw;
151
153 return;
154 }
156 currIsLine = false;
157 goto DO_BLUNT;
158 }
159
161 if (ccw) {
166 }
167
168
169
170
171
172
173
175 mid = (before + after) * radius;
176 goto DO_MITER;
177 }
178
179
180
181
182
183
184
185
186
188 if (sinHalfAngle < invMiterLimit) {
189 currIsLine = false;
190 goto DO_BLUNT;
191 }
192
193
195 mid.
set(after.
fY - before.
fY, before.
fX - after.
fX);
196 if (ccw) {
198 }
199 } else {
200 mid.
set(before.
fX + after.
fX, before.
fY + after.
fY);
201 }
202
204DO_MITER:
205 if (prevIsLine) {
207 } else {
209 }
210
211DO_BLUNT:
213 if (!currIsLine) {
215 }
217}
static AngleType Dot2AngleType(SkScalar dot)
void setLastPt(SkScalar x, SkScalar y)
bool setLength(float length)
static float DotProduct(const SkVector &a, const SkVector &b)
void set(float x, float y)
◆ RoundCapper()
Definition at line 22 of file SkStrokerPriv.cpp.
23 {
26
27 SkPoint projectedCenter = pivot + parallel;
28
31}
#define SK_ScalarRoot2Over2
static void RotateCW(const SkPoint &src, SkPoint *dst)
◆ RoundJoiner()
Definition at line 102 of file SkStrokerPriv.cpp.
104 {
107
109 return;
110
114
121 }
122
124 matrix.setScale(radius, radius);
131 }
134 }
135}
@ kCW_SkRotationDirection
@ kCCW_SkRotationDirection
SkPath & conicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar w)
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 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
static int BuildUnitArc(const SkVector &start, const SkVector &stop, SkRotationDirection, const SkMatrix *, SkConic conics[kMaxConicsForArc])
◆ SquareCapper()
Definition at line 33 of file SkStrokerPriv.cpp.
34 {
37
38 if (otherPath) {
41 } else {
45 }
46}