Lines Matching refs:canvas
13 static void test_path(SkCanvas* canvas, const SkPath& path) { in test_path() argument
16 canvas->drawPath(path, paint); in test_path()
20 canvas->drawPath(path, paint); in test_path()
23 static void test_rev(SkCanvas* canvas, const SkPath& path) { in test_rev() argument
24 test_path(canvas, path); in test_rev()
28 canvas->save(); in test_rev()
29 canvas->translate(150, 0); in test_rev()
30 test_path(canvas, rev); in test_rev()
31 canvas->restore(); in test_rev()
34 static void test_rev(SkCanvas* canvas) { in test_rev() argument
39 path.addRect(r); test_rev(canvas, path); in test_rev()
41 canvas->translate(0, 100); in test_rev()
43 path.addRect(r); test_rev(canvas, path); in test_rev()
45 canvas->translate(0, 100); in test_rev()
51 test_rev(canvas, path); in test_rev()
58 canvas->translate(0, 100); in test_rev()
59 test_rev(canvas, path); in test_rev()
80 void onDraw(SkCanvas* canvas) override { in onDraw() argument
81 if (false) test_rev(canvas); // avoid bit rot, suppress warning in onDraw()
86 path.addRect(r); test_rev(canvas, path); in onDraw()
88 canvas->translate(0, 100); in onDraw()
90 path.addRect(r); test_rev(canvas, path); in onDraw()
92 canvas->translate(0, 100); in onDraw()
98 test_rev(canvas, path); in onDraw()
105 canvas->translate(0, 100); in onDraw()
106 test_rev(canvas, path); in onDraw()