20 {
24
25 canvas->clear(0xFFFFFFFF);
26
27 canvas->save();
28
30
31 canvas->translate(0,
y);
32 canvas->rotate(1);
33 canvas->drawRect({ 20, 20, 200, 200 },
p);
34 canvas->restore();
35
37
38 canvas->save();
39 canvas->translate(0,
y);
40 canvas->rotate(1);
41 canvas->drawRect({ 20, 20, 20.2f, 200 },
p);
42 canvas->drawRect({ 20, 200, 200, 200.1f },
p);
43 canvas->drawCircle(100, 100, 30,
p);
44 canvas->restore();
45
46
49
55 canvas->drawPath(pb.
detach(),
p);
56
57
58
59
62
67
69 canvas->drawPath(
path,
p);
70
71
73 canvas->save();
74 canvas->translate(0,
y);
76 pb.
moveTo(1.98009784f, 9.0162744f);
77 pb.
lineTo(47.843992f, 10.1922744f);
78 pb.
lineTo(47.804008f, 11.7597256f);
79 pb.
lineTo(1.93990216f, 10.5837256f);
80 canvas->drawPath(pb.
detach(),
p);
81 canvas->restore();
82
83
84
89 canvas->drawPath(pb.
detach(),
p);
90}
constexpr SkColor SK_ColorRED
static float SkBits2Float(uint32_t bits)
SkPathBuilder & conicTo(SkPoint pt1, SkPoint pt2, SkScalar w)
SkPathBuilder & lineTo(SkPoint pt)
SkPathBuilder & cubicTo(SkPoint pt1, SkPoint pt2, SkPoint pt3)
SkPathBuilder & moveTo(SkPoint pt)
static void SetConvexity(const SkPath &path, SkPathConvexity c)
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