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);
57 path.reset();
58 paint.getTextPath("e", 1, 50, 50, &path);
60 test_rev(canvas, path);
77 return SkString("path-reverse");
88 SkPath path;
90 path.addRect(r); test_rev(canvas, path);
93 path.offset(20, 20);
94 path.addRect(r); test_rev(canvas, path);
97 path.reset();
98 path.moveTo(10, 10); path.lineTo(30, 30);
99 path.addOval(r);
101 path.addOval(r);
102 test_rev(canvas, path);
108 path.reset();
109 paint.getTextPath("e", 1, 50, 50, &path);
111 test_rev(canvas, path);