86 {
91 {
95
97 canvas->clear(0xFFCECFCE);
99 canvas->translate(0, -translate);
100
101
103 size - 8 + translate);
104 canvas->drawRect(
rect, checker);
105
106
107 canvas->translate(
size, 0);
109 SkVector radii[4] = {{40, 40}, {40, 40}, {40, 40}, {40, 40}};
111 canvas->drawRRect(
rrect, checker);
112
113
118 {8,
size / 2 + translate},
128
129
130 canvas->translate(
size, 0);
132 }
133
143}
static const int points[]
constexpr SkColor SK_ColorCYAN
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorWHITE
@ kLines_PointMode
draw each pair of points as a line segment
void setStyle(Style style)
void setAntiAlias(bool aa)
void setStrokeCap(Cap cap)
@ kStroke_Style
set to stroke geometry
void setStrokeWidth(SkScalar width)
void setRectRadii(const SkRect &rect, const SkVector radii[4])
sk_sp< SkBlender > blender SkRect rect
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
static void rotated_checkerboard_shader(SkPaint *paint, SkColor c1, SkColor c2, int size)
static void test_text(SkCanvas *canvas, SkScalar size, SkColor color, SkScalar Y)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)