4 {
7 paint.setAntiAlias(
true);
9 { 6, 4 }, { 7, 5 }, { 5, 7 },
10 { 4, 6 }, { 3, 7 }, { 1, 5 },
11 { 2, 4 }, { 1, 3 }, { 3, 1 } };
12 canvas->
scale(15, 10);
15 for (
auto& point :
points) {
16 point *= 2;
17 }
20}
21}
static const int points[]
constexpr SkColor SK_ColorRED
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawPoints(PointMode mode, size_t count, const SkPoint pts[], const SkPaint &paint)
void scale(SkScalar sx, SkScalar sy)
@ kPolygon_PointMode
draw the array of points as a open polygon
@ kStroke_Style
set to stroke geometry
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