144 {
150
153 const int kXStep = 150;
154 const int kYStep = 160;
155 int maxX = fMatrices.
size();
156
162
164 for (
int i = 0;
i < fPaints.
size(); ++
i) {
165 for (
int j = 0; j < fMatrices.
size(); ++j) {
168
174
176 fPaints[
i].setColor(
color);
177
180
182
184 }
185 }
186
187
188
189
190 for (
int i = 0;
i < fPaints.
size(); ++
i) {
194
196
199
201 fPaints[
i].setColor(
color);
202
206 }
207
208
209 for (
int i = 0;
i < fPaints.
size(); ++
i) {
213
215
219
221 fPaints[
i].setColor(
color);
222
226 }
227
228
229 for (
int i = 0;
i < fPaints.
size(); ++
i) {
233
235
238
240 fPaints[
i].setColor(
color);
241
244 }
245
246
247 for (
int i = 0;
i < fPaints.
size(); ++
i) {
251
253
257
259 fPaints[
i].setColor(
color);
260
263 }
264
265
271
272 for (
int i = 0;
i < fPaints.
size(); ++
i) {
274
278
280 fPaints[
i].setColor(
color);
281 fPaints[
i].setShader(shader);
282
285
286 fPaints[
i].setShader(
nullptr);
287
289 }
290
291
292 {
294 {10,10},
295 {5,15},
296 {5,15},
297 {5,15}
298 };
299
301 20, 10, 20, 40
302 };
303
304 for (
int i = 0;
i < 4; ++
i) {
306 circleRect.
setRectXY(kRect, radii[
i][0], radii[
i][1]);
307
309
313
315
317 p.setAntiAlias(
true);
319 p.setStrokeWidth(strokeWidths[
i]);
321
324 }
325 }
326
327
328 {
330
334
336
339
340 const SkRect oooRect = { 20, 30, -20, -30 };
342
344 }
345
346
347 {
348 SkRect smallRect = { -30, -20, 30, 20 };
351
353
357
359
361 p.setAntiAlias(
true);
363 p.setStrokeWidth(25);
365
368 }
369 }
static const size_t testCount
constexpr SkColor SK_ColorLTGRAY
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorGREEN
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void drawRRect(const SkRRect &rrect, const SkPaint &paint)
void drawRoundRect(const SkRect &rect, SkScalar rx, SkScalar ry, const SkPaint &paint)
void concat(const SkMatrix &matrix)
static sk_sp< SkShader > MakeRadial(const SkPoint ¢er, SkScalar radius, const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
SkMatrix & postTranslate(SkScalar dx, SkScalar dy)
void setStyle(Style style)
void setColor(SkColor color)
void setAntiAlias(bool aa)
void setStrokeWidth(SkScalar width)
void setRectXY(const SkRect &rect, SkScalar xRad, SkScalar yRad)
sk_sp< SkBlender > blender SkRect rect
PODArray< SkColor > colors
constexpr std::array< std::array< float, 2 >, 2 > kRect
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 SkColor gen_color(SkRandom *rand)
static constexpr SkPoint Make(float x, float y)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)