Home | History | Annotate | Download | only in tests

Lines Matching full:path

14 static void drawAndTest(skiatest::Reporter* reporter, const SkPath& path,
25 canvas.drawPath(path, p);
44 str = "Path expected to draw everywhere, but didn't. ";
46 str = "Path expected to draw nowhere, but did. ";
51 paint.isAntiAlias(), path.getFillType(), path.countPoints());
53 // canvas.drawPath(path, p);
62 static void iter_paint(skiatest::Reporter* reporter, const SkPath& path, bool shouldDraw,
95 drawAndTest(reporter, path, paint, shouldDraw);
97 drawAndTest(reporter, path, paint, shouldDraw);
107 static void make_M(SkPath* path) { path->moveTo(CX, CY); }
108 static void make_MM(SkPath* path) { path->moveTo(CX, CY); path->moveTo(CX, CY); }
109 static void make_MZM(SkPath* path) { path->moveTo(CX, CY); path->close(); path->moveTo(CX, CY); }
110 static void make_L(SkPath* path) { path->moveTo(CX, CY); path->lineTo(CX, CY); }
111 static void make_Q(SkPath* path) { path->moveTo(CX, CY); path->quadTo(CX, CY, CX, CY); }
112 static void make_C(SkPath* path) { path->moveTo(CX, CY); path->cubicTo(CX, CY, CX, CY, CX, CY); }
114 /* Two invariants are tested: How does an empty/degenerate path draw?
115 * - if the path is drawn inverse, it should draw everywhere
116 * - if the path is drawn non-inverse, it should draw nowhere
119 * - path (empty, degenerate line/quad/cubic w/ and w/o close
121 * - path filltype
122 * - path stroke variants (e.g. caps, joins, width)
136 SkPath path;
137 gMakeProc[i](&path);
139 path.close();
146 path.setFillType(gFills[fill]);
147 bool shouldDraw = path.isInverseFillType();
148 iter_paint(reporter, path, shouldDraw, allowCaps ? kDrawCaps : kDontDrawCaps);