4 {
6 bool unscale_at_end,
7 bool extend_to_top,
8 float endcap_width,
10
12 const float bottom =
size.fHeight *
scale;
13 const float scaled_endcap_radius = (endcap_width / 2) *
scale;
14
16 path.moveTo(0, bottom - 1);
17
20 bottom - 1 - scaled_endcap_radius);
21
22
23
24 path.lineTo(scaled_endcap_radius - 1, scaled_endcap_radius + 1);
25
26
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 path.lineTo(
right - scaled_endcap_radius * 2, -1);
46
47
48
51 scaled_endcap_radius + 1);
52
53
54
55
56
57 path.lineTo(
right - scaled_endcap_radius + 1, bottom - 1 - scaled_endcap_radius);
58
59
60
64
67
69}
70
72 float scale,
const SkISize&
size,
float endcap_width,
float horizontal_inset = 0) {
74
75
77
78
79
80 const float scaled_endcap_radius = (endcap_width / 2) *
scale;
81
82
83
84
85
87
89
90
93 bottom - scaled_endcap_radius);
94
95
96
97 right_path.
lineTo(
right - scaled_endcap_radius, scaled_endcap_radius);
98
99
100
101
104
105
106
108 right_path.
lineTo(0, bottom);
110
112
113 left_path.
moveTo(scaled_endcap_radius * 2, 0);
114
115
118
119
120
121 left_path.
lineTo(scaled_endcap_radius, bottom - scaled_endcap_radius);
122
123
124
127
128
129
133
136 return complete_path;
137}
138
142 p.setAntiAlias(
true);
148
153
154
155}
156}
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
@ kIntersect_SkPathOp
intersect the two paths
static bool right(const SkPoint &p0, const SkPoint &p1)
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawPath(const SkPath &path, const SkPaint &paint)
static SkMatrix Scale(SkScalar sx, SkScalar sy)
static SkMatrix Translate(SkScalar dx, SkScalar dy)
@ kStroke_Style
set to stroke geometry
SkPath & arcTo(const SkRect &oval, SkScalar startAngle, SkScalar sweepAngle, bool forceMoveTo)
SkPath & moveTo(SkScalar x, SkScalar y)
SkPath & lineTo(SkScalar x, SkScalar y)
@ kSmall_ArcSize
smaller of arc pair
void transform(const SkMatrix &matrix, SkPath *dst, SkApplyPerspectiveClip pc=SkApplyPerspectiveClip::kYes) 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
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
SIN Vec< N, float > ceil(const Vec< N, float > &x)
static constexpr SkISize Make(int32_t w, int32_t h)