Home | History | Annotate | Download | only in gm

Lines Matching full:canvas

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