Lines Matching refs:canvas

17 void test_concave(SkCanvas* canvas, const SkPaint& paint) {  in test_concave()  argument
19 canvas->translate(0, 0); in test_concave()
24 canvas->drawPath(path, paint); in test_concave()
28 void test_reverse_concave(SkCanvas* canvas, const SkPaint& paint) { in test_reverse_concave() argument
30 canvas->save(); in test_reverse_concave()
31 canvas->translate(100, 0); in test_reverse_concave()
36 canvas->drawPath(path, paint); in test_reverse_concave()
37 canvas->restore(); in test_reverse_concave()
41 void test_bowtie(SkCanvas* canvas, const SkPaint& paint) { in test_bowtie() argument
43 canvas->save(); in test_bowtie()
44 canvas->translate(200, 0); in test_bowtie()
49 canvas->drawPath(path, paint); in test_bowtie()
50 canvas->restore(); in test_bowtie()
54 void test_fake_bowtie(SkCanvas* canvas, const SkPaint& paint) { in test_fake_bowtie() argument
56 canvas->save(); in test_fake_bowtie()
57 canvas->translate(300, 0); in test_fake_bowtie()
64 canvas->drawPath(path, paint); in test_fake_bowtie()
65 canvas->restore(); in test_fake_bowtie()
69 void test_fish(SkCanvas* canvas, const SkPaint& paint) { in test_fish() argument
71 canvas->save(); in test_fish()
72 canvas->translate(0, 100); in test_fish()
79 canvas->drawPath(path, paint); in test_fish()
80 canvas->restore(); in test_fish()
84 void test_collinear_edges(SkCanvas* canvas, const SkPaint& paint) { in test_collinear_edges() argument
86 canvas->save(); in test_collinear_edges()
87 canvas->translate(100, 100); in test_collinear_edges()
92 canvas->drawPath(path, paint); in test_collinear_edges()
93 canvas->restore(); in test_collinear_edges()
97 void test_hole(SkCanvas* canvas, const SkPaint& paint) { in test_hole() argument
99 canvas->save(); in test_hole()
100 canvas->translate(200, 100); in test_hole()
109 canvas->drawPath(path, paint); in test_hole()
110 canvas->restore(); in test_hole()
114 void test_star(SkCanvas* canvas, const SkPaint& paint) { in test_star() argument
116 canvas->save(); in test_star()
117 canvas->translate(300, 100); in test_star()
124 canvas->drawPath(path, paint); in test_star()
125 canvas->restore(); in test_star()
129 void test_stairstep(SkCanvas* canvas, const SkPaint& paint) { in test_stairstep() argument
131 canvas->save(); in test_stairstep()
132 canvas->translate(0, 200); in test_stairstep()
139 canvas->drawPath(path, paint); in test_stairstep()
140 canvas->restore(); in test_stairstep()
143 void test_stairstep2(SkCanvas* canvas, const SkPaint& paint) { in test_stairstep2() argument
145 canvas->save(); in test_stairstep2()
146 canvas->translate(100, 200); in test_stairstep2()
152 canvas->drawPath(path, paint); in test_stairstep2()
153 canvas->restore(); in test_stairstep2()
157 void test_overlapping(SkCanvas* canvas, const SkPaint& paint) { in test_overlapping() argument
159 canvas->save(); in test_overlapping()
160 canvas->translate(200, 200); in test_overlapping()
165 canvas->drawPath(path, paint); in test_overlapping()
166 canvas->restore(); in test_overlapping()
170 void test_monotone_1(SkCanvas* canvas, const SkPaint& paint) { in test_monotone_1() argument
172 canvas->save(); in test_monotone_1()
173 canvas->translate(0, 300); in test_monotone_1()
179 canvas->drawPath(path, paint); in test_monotone_1()
180 canvas->restore(); in test_monotone_1()
184 void test_monotone_2(SkCanvas* canvas, const SkPaint& paint) { in test_monotone_2() argument
186 canvas->save(); in test_monotone_2()
187 canvas->translate(100, 300); in test_monotone_2()
192 canvas->drawPath(path, paint); in test_monotone_2()
193 canvas->restore(); in test_monotone_2()
197 void test_monotone_3(SkCanvas* canvas, const SkPaint& paint) { in test_monotone_3() argument
199 canvas->save(); in test_monotone_3()
200 canvas->translate(200, 300); in test_monotone_3()
205 canvas->drawPath(path, paint); in test_monotone_3()
206 canvas->restore(); in test_monotone_3()
210 void test_monotone_4(SkCanvas* canvas, const SkPaint& paint) { in test_monotone_4() argument
212 canvas->save(); in test_monotone_4()
213 canvas->translate(300, 300); in test_monotone_4()
220 canvas->drawPath(path, paint); in test_monotone_4()
221 canvas->restore(); in test_monotone_4()
225 void test_monotone_5(SkCanvas* canvas, const SkPaint& paint) { in test_monotone_5() argument
227 canvas->save(); in test_monotone_5()
228 canvas->translate(0, 400); in test_monotone_5()
233 canvas->drawPath(path, paint); in test_monotone_5()
234 canvas->restore(); in test_monotone_5()
237 void test_degenerate(SkCanvas* canvas, const SkPaint& paint) { in test_degenerate() argument
239 canvas->save(); in test_degenerate()
240 canvas->translate(100, 400); in test_degenerate()
247 canvas->drawPath(path, paint); in test_degenerate()
248 canvas->restore(); in test_degenerate()
251 void test_coincident_edge(SkCanvas* canvas, const SkPaint& paint) { in test_coincident_edge() argument
253 canvas->save(); in test_coincident_edge()
254 canvas->translate(200, 400); in test_coincident_edge()
264 canvas->drawPath(path, paint); in test_coincident_edge()
265 canvas->restore(); in test_coincident_edge()
269 void test_bowtie_coincident_triangle(SkCanvas* canvas, const SkPaint& paint) { in test_bowtie_coincident_triangle() argument
271 canvas->save(); in test_bowtie_coincident_triangle()
272 canvas->translate(300, 400); in test_bowtie_coincident_triangle()
280 canvas->drawPath(path, paint); in test_bowtie_coincident_triangle()
281 canvas->restore(); in test_bowtie_coincident_triangle()
285 void test_coincident_edges_1(SkCanvas* canvas, const SkPaint& paint) { in test_coincident_edges_1() argument
287 canvas->save(); in test_coincident_edges_1()
288 canvas->translate(0, 500); in test_coincident_edges_1()
295 canvas->drawPath(path, paint); in test_coincident_edges_1()
296 canvas->restore(); in test_coincident_edges_1()
299 void test_coincident_edges_2(SkCanvas* canvas, const SkPaint& paint) { in test_coincident_edges_2() argument
301 canvas->save(); in test_coincident_edges_2()
302 canvas->translate(100, 500); in test_coincident_edges_2()
309 canvas->drawPath(path, paint); in test_coincident_edges_2()
310 canvas->restore(); in test_coincident_edges_2()
313 void test_coincident_edges_3(SkCanvas* canvas, const SkPaint& paint) { in test_coincident_edges_3() argument
315 canvas->save(); in test_coincident_edges_3()
316 canvas->translate(200, 500); in test_coincident_edges_3()
323 canvas->drawPath(path, paint); in test_coincident_edges_3()
324 canvas->restore(); in test_coincident_edges_3()
327 void test_coincident_edges_4(SkCanvas* canvas, const SkPaint& paint) { in test_coincident_edges_4() argument
329 canvas->save(); in test_coincident_edges_4()
330 canvas->translate(300, 500); in test_coincident_edges_4()
337 canvas->drawPath(path, paint); in test_coincident_edges_4()
338 canvas->restore(); in test_coincident_edges_4()
356 void onDraw(SkCanvas* canvas) override { in onDraw() argument
362 test_concave(canvas, paint); in onDraw()
363 test_reverse_concave(canvas, paint); in onDraw()
364 test_bowtie(canvas, paint); in onDraw()
365 test_fake_bowtie(canvas, paint); in onDraw()
366 test_fish(canvas, paint); in onDraw()
367 test_collinear_edges(canvas, paint); in onDraw()
368 test_hole(canvas, paint); in onDraw()
369 test_star(canvas, paint); in onDraw()
370 test_stairstep(canvas, paint); in onDraw()
371 test_stairstep2(canvas, paint); in onDraw()
372 test_overlapping(canvas, paint); in onDraw()
373 test_monotone_1(canvas, paint); in onDraw()
374 test_monotone_2(canvas, paint); in onDraw()
375 test_monotone_3(canvas, paint); in onDraw()
376 test_monotone_4(canvas, paint); in onDraw()
377 test_monotone_5(canvas, paint); in onDraw()
378 test_degenerate(canvas, paint); in onDraw()
379 test_coincident_edge(canvas, paint); in onDraw()
380 test_bowtie_coincident_triangle(canvas, paint); in onDraw()
381 test_coincident_edges_1(canvas, paint); in onDraw()
382 test_coincident_edges_2(canvas, paint); in onDraw()
383 test_coincident_edges_3(canvas, paint); in onDraw()
384 test_coincident_edges_4(canvas, paint); in onDraw()