Home | History | Annotate | Download | only in gm

Lines Matching full:path

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);
27 rev.reverseAddPath(path);
37 SkPath path;
39 path.addRect(r); test_rev(canvas, path);
42 path.offset(20, 20);
43 path.addRect(r); test_rev(canvas, path);
46 path.reset();
47 path.moveTo(10, 10); path.lineTo(30, 30);
48 path.addOval(r);
50 path.addOval(r);
51 test_rev(canvas, path);
56 path.reset();
57 paint.getTextPath("e", 1, 50, 50, &path);
59 test_rev(canvas, path);
73 return SkString("path-reverse");
84 SkPath path;
86 path.addRect(r); test_rev(canvas, path);
89 path.offset(20, 20);
90 path.addRect(r); test_rev(canvas, path);
93 path.reset();
94 path.moveTo(10, 10); path.lineTo(30, 30);
95 path.addOval(r);
97 path.addOval(r);
98 test_rev(canvas, path);
103 path.reset();
104 paint.getTextPath("e", 1, 50, 50, &path);
106 test_rev(canvas, path);