145 {
149
152 const int kXStep = 150;
153 const int kYStep = 160;
154 int maxX = fMatrices.
size();
155
161
163 for (
int i = 0;
i < fPaints.
size(); ++
i) {
164 for (
int j = 0; j < fMatrices.
size(); ++j) {
167
173
175 fPaints[
i].setColor(
color);
176
179
181
183 }
184 }
185
186
187
188
189 for (
int i = 0;
i < fPaints.
size(); ++
i) {
192
195
197 fPaints[
i].setColor(
color);
198
202 }
203
204
205 for (
int i = 0;
i < fPaints.
size(); ++
i) {
208
212
214 fPaints[
i].setColor(
color);
215
219 }
220
221
222 for (
int i = 0;
i < fPaints.
size(); ++
i) {
225
228
230 fPaints[
i].setColor(
color);
231
234 }
235
236
237 for (
int i = 0;
i < fPaints.
size(); ++
i) {
240
244
246 fPaints[
i].setColor(
color);
247
250 }
251
252
258
259 for (
int i = 0;
i < fPaints.
size(); ++
i) {
261
265
267 fPaints[
i].setColor(
color);
268 fPaints[
i].setShader(shader);
269
272
273 fPaints[
i].setShader(
nullptr);
274
276 }
277
278
279 for (
int i = 0;
i < fPaints.
size(); ++
i) {
282
287 canvas->
scale(1, -1);
288 canvas->
scale(1, 0.66f);
289
291 fPaints[
i].setColor(
color);
292
296 }
297 }
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 drawOval(const SkRect &oval, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void rotate(SkScalar degrees)
void scale(SkScalar sx, SkScalar sy)
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)
SkColor genColor(SkRandom *rand)
PODArray< SkColor > colors
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 constexpr SkPoint Make(float x, float y)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)