23 {
25 paint.setAntiAlias(
true);
27
28 {
30 canvas->drawString("Should be a green square with no red showing through.",
32
34 canvas->drawRect({0,0,
K,
K},
paint);
35
41
44 }
45
46 canvas->translate(0,
K);
47 {
49 canvas->drawString("Adjacent rects, two draws. Blue then green, no red?",
51
53 canvas->drawRect({0,0,
K,
K},
paint);
54
55 {
59 }
60
61 {
65 }
66 }
67
68 canvas->translate(0,
K);
69 {
71 canvas->drawString("Adjacent rects, wound together. All green?",
73
75 canvas->drawRect({0,0,
K,
K},
paint);
76
77 {
79 .addPolygon({{
K*0.5f,0},{
K*0.5f,
K},{
K,
K},{
K,0}},
false)
80 .detach();
81
84 }
85 }
86
87 canvas->translate(0,
K);
88 {
90 canvas->drawString("Adjacent rects, wound opposite. All green?",
92
94 canvas->drawRect({0,0,
K,
K},
paint);
95
96 {
98 .addPolygon({{
K*0.5f,0},{
K,0},{
K,
K},{
K*0.5f,
K}},
false)
99 .detach();
100
103 }
104 }
105
106 canvas->translate(0,
K);
107 {
109 canvas->drawString("One poly, wound opposite. All green?",
111
113 canvas->drawRect({0,0,
K,
K},
paint);
114
116 {
K*0.5f,0},{
K,0},{
K,
K},{
K*0.5f,
K}},
117 false);
118
121 }
122}
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorGREEN
SkPathBuilder & addPolygon(const SkPoint pts[], int count, bool isClosed)
static SkPath Polygon(const SkPoint pts[], int count, bool isClosed, SkPathFillType=SkPathFillType::kWinding, bool isVolatile=false)
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
font
Font Metadata and Metrics.