21static const int K = 49;
25 paint.setAntiAlias(
true);
30 canvas->drawString(
"Should be a green square with no red showing through.",
34 canvas->drawRect({0,0,
K,
K},
paint);
46 canvas->translate(0,
K);
49 canvas->drawString(
"Adjacent rects, two draws. Blue then green, no red?",
53 canvas->drawRect({0,0,
K,
K},
paint);
68 canvas->translate(0,
K);
71 canvas->drawString(
"Adjacent rects, wound together. All green?",
75 canvas->drawRect({0,0,
K,
K},
paint);
79 .addPolygon({{
K*0.5f,0},{
K*0.5f,
K},{
K,
K},{
K,0}},
false)
87 canvas->translate(0,
K);
90 canvas->drawString(
"Adjacent rects, wound opposite. All green?",
94 canvas->drawRect({0,0,
K,
K},
paint);
98 .addPolygon({{
K*0.5f,0},{
K,0},{
K,
K},{
K*0.5f,
K}},
false)
106 canvas->translate(0,
K);
109 canvas->drawString(
"One poly, wound opposite. All green?",
113 canvas->drawRect({0,0,
K,
K},
paint);
116 {
K*0.5f,0},{
K,0},{
K,
K},{
K*0.5f,
K}},
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_SIMPLE_GM(daa, canvas, K+350, 5 *K)
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.