Lines Matching refs:canvas

16 void test_concave(SkCanvas* canvas, const SkPaint& paint) {  in test_concave()  argument
18 canvas->translate(0, 0); in test_concave()
23 canvas->drawPath(path, paint); in test_concave()
27 void test_reverse_concave(SkCanvas* canvas, const SkPaint& paint) { in test_reverse_concave() argument
29 canvas->save(); in test_reverse_concave()
30 canvas->translate(100, 0); in test_reverse_concave()
35 canvas->drawPath(path, paint); in test_reverse_concave()
36 canvas->restore(); in test_reverse_concave()
40 void test_bowtie(SkCanvas* canvas, const SkPaint& paint) { in test_bowtie() argument
42 canvas->save(); in test_bowtie()
43 canvas->translate(200, 0); in test_bowtie()
48 canvas->drawPath(path, paint); in test_bowtie()
49 canvas->restore(); in test_bowtie()
53 void test_fake_bowtie(SkCanvas* canvas, const SkPaint& paint) { in test_fake_bowtie() argument
55 canvas->save(); in test_fake_bowtie()
56 canvas->translate(300, 0); in test_fake_bowtie()
63 canvas->drawPath(path, paint); in test_fake_bowtie()
64 canvas->restore(); in test_fake_bowtie()
68 void test_fish(SkCanvas* canvas, const SkPaint& paint) { in test_fish() argument
70 canvas->save(); in test_fish()
71 canvas->translate(0, 100); in test_fish()
78 canvas->drawPath(path, paint); in test_fish()
79 canvas->restore(); in test_fish()
83 void test_collinear_edges(SkCanvas* canvas, const SkPaint& paint) { in test_collinear_edges() argument
85 canvas->save(); in test_collinear_edges()
86 canvas->translate(100, 100); in test_collinear_edges()
91 canvas->drawPath(path, paint); in test_collinear_edges()
92 canvas->restore(); in test_collinear_edges()
96 void test_hole(SkCanvas* canvas, const SkPaint& paint) { in test_hole() argument
98 canvas->save(); in test_hole()
99 canvas->translate(200, 100); in test_hole()
108 canvas->drawPath(path, paint); in test_hole()
109 canvas->restore(); in test_hole()
113 void test_star(SkCanvas* canvas, const SkPaint& paint) { in test_star() argument
115 canvas->save(); in test_star()
116 canvas->translate(300, 100); in test_star()
123 canvas->drawPath(path, paint); in test_star()
124 canvas->restore(); in test_star()
128 void test_stairstep(SkCanvas* canvas, const SkPaint& paint) { in test_stairstep() argument
130 canvas->save(); in test_stairstep()
131 canvas->translate(0, 200); in test_stairstep()
138 canvas->drawPath(path, paint); in test_stairstep()
139 canvas->restore(); in test_stairstep()
142 void test_stairstep2(SkCanvas* canvas, const SkPaint& paint) { in test_stairstep2() argument
144 canvas->save(); in test_stairstep2()
145 canvas->translate(100, 200); in test_stairstep2()
151 canvas->drawPath(path, paint); in test_stairstep2()
152 canvas->restore(); in test_stairstep2()
156 void test_overlapping(SkCanvas* canvas, const SkPaint& paint) { in test_overlapping() argument
158 canvas->save(); in test_overlapping()
159 canvas->translate(200, 200); in test_overlapping()
164 canvas->drawPath(path, paint); in test_overlapping()
165 canvas->restore(); in test_overlapping()
169 void test_monotone_1(SkCanvas* canvas, const SkPaint& paint) { in test_monotone_1() argument
171 canvas->save(); in test_monotone_1()
172 canvas->translate(0, 300); in test_monotone_1()
178 canvas->drawPath(path, paint); in test_monotone_1()
179 canvas->restore(); in test_monotone_1()
183 void test_monotone_2(SkCanvas* canvas, const SkPaint& paint) { in test_monotone_2() argument
185 canvas->save(); in test_monotone_2()
186 canvas->translate(100, 300); in test_monotone_2()
191 canvas->drawPath(path, paint); in test_monotone_2()
192 canvas->restore(); in test_monotone_2()
196 void test_monotone_3(SkCanvas* canvas, const SkPaint& paint) { in test_monotone_3() argument
198 canvas->save(); in test_monotone_3()
199 canvas->translate(200, 300); in test_monotone_3()
204 canvas->drawPath(path, paint); in test_monotone_3()
205 canvas->restore(); in test_monotone_3()
209 void test_monotone_4(SkCanvas* canvas, const SkPaint& paint) { in test_monotone_4() argument
211 canvas->save(); in test_monotone_4()
212 canvas->translate(300, 300); in test_monotone_4()
219 canvas->drawPath(path, paint); in test_monotone_4()
220 canvas->restore(); in test_monotone_4()
224 void test_monotone_5(SkCanvas* canvas, const SkPaint& paint) { in test_monotone_5() argument
226 canvas->save(); in test_monotone_5()
227 canvas->translate(0, 400); in test_monotone_5()
232 canvas->drawPath(path, paint); in test_monotone_5()
233 canvas->restore(); in test_monotone_5()
236 void test_degenerate(SkCanvas* canvas, const SkPaint& paint) { in test_degenerate() argument
238 canvas->save(); in test_degenerate()
239 canvas->translate(100, 400); in test_degenerate()
246 canvas->drawPath(path, paint); in test_degenerate()
247 canvas->restore(); in test_degenerate()
250 void test_coincident_edge(SkCanvas* canvas, const SkPaint& paint) { in test_coincident_edge() argument
252 canvas->save(); in test_coincident_edge()
253 canvas->translate(200, 400); in test_coincident_edge()
263 canvas->drawPath(path, paint); in test_coincident_edge()
264 canvas->restore(); in test_coincident_edge()
268 void test_bowtie_coincident_triangle(SkCanvas* canvas, const SkPaint& paint) { in test_bowtie_coincident_triangle() argument
270 canvas->save(); in test_bowtie_coincident_triangle()
271 canvas->translate(300, 400); in test_bowtie_coincident_triangle()
279 canvas->drawPath(path, paint); in test_bowtie_coincident_triangle()
280 canvas->restore(); in test_bowtie_coincident_triangle()
284 void test_coincident_edges_1(SkCanvas* canvas, const SkPaint& paint) { in test_coincident_edges_1() argument
286 canvas->save(); in test_coincident_edges_1()
287 canvas->translate(0, 500); in test_coincident_edges_1()
294 canvas->drawPath(path, paint); in test_coincident_edges_1()
295 canvas->restore(); in test_coincident_edges_1()
298 void test_coincident_edges_2(SkCanvas* canvas, const SkPaint& paint) { in test_coincident_edges_2() argument
300 canvas->save(); in test_coincident_edges_2()
301 canvas->translate(100, 500); in test_coincident_edges_2()
308 canvas->drawPath(path, paint); in test_coincident_edges_2()
309 canvas->restore(); in test_coincident_edges_2()
312 void test_coincident_edges_3(SkCanvas* canvas, const SkPaint& paint) { in test_coincident_edges_3() argument
314 canvas->save(); in test_coincident_edges_3()
315 canvas->translate(200, 500); in test_coincident_edges_3()
322 canvas->drawPath(path, paint); in test_coincident_edges_3()
323 canvas->restore(); in test_coincident_edges_3()
326 void test_coincident_edges_4(SkCanvas* canvas, const SkPaint& paint) { in test_coincident_edges_4() argument
328 canvas->save(); in test_coincident_edges_4()
329 canvas->translate(300, 500); in test_coincident_edges_4()
336 canvas->drawPath(path, paint); in test_coincident_edges_4()
337 canvas->restore(); in test_coincident_edges_4()
355 void onDraw(SkCanvas* canvas) override { in onDraw() argument
361 test_concave(canvas, paint); in onDraw()
362 test_reverse_concave(canvas, paint); in onDraw()
363 test_bowtie(canvas, paint); in onDraw()
364 test_fake_bowtie(canvas, paint); in onDraw()
365 test_fish(canvas, paint); in onDraw()
366 test_collinear_edges(canvas, paint); in onDraw()
367 test_hole(canvas, paint); in onDraw()
368 test_star(canvas, paint); in onDraw()
369 test_stairstep(canvas, paint); in onDraw()
370 test_stairstep2(canvas, paint); in onDraw()
371 test_overlapping(canvas, paint); in onDraw()
372 test_monotone_1(canvas, paint); in onDraw()
373 test_monotone_2(canvas, paint); in onDraw()
374 test_monotone_3(canvas, paint); in onDraw()
375 test_monotone_4(canvas, paint); in onDraw()
376 test_monotone_5(canvas, paint); in onDraw()
377 test_degenerate(canvas, paint); in onDraw()
378 test_coincident_edge(canvas, paint); in onDraw()
379 test_bowtie_coincident_triangle(canvas, paint); in onDraw()
380 test_coincident_edges_1(canvas, paint); in onDraw()
381 test_coincident_edges_2(canvas, paint); in onDraw()
382 test_coincident_edges_3(canvas, paint); in onDraw()
383 test_coincident_edges_4(canvas, paint); in onDraw()