Lines Matching defs:path
15 static void drawAndTest(skiatest::Reporter* reporter, const SkPath& path,
26 canvas.drawPath(path, p);
52 paint.isAntiAlias(), path.getFillType(), path.countPoints());
54 // canvas.drawPath(path, p);
63 static void iter_paint(skiatest::Reporter* reporter, const SkPath& path, bool shouldDraw,
96 drawAndTest(reporter, path, paint, shouldDraw);
98 drawAndTest(reporter, path, paint, shouldDraw);
108 static void make_M(SkPath* path) { path->moveTo(CX, CY); }
109 static void make_MM(SkPath* path) { path->moveTo(CX, CY).moveTo(CX, CY); }
110 static void make_MZM(SkPath* path) { path->moveTo(CX, CY).close().moveTo(CX, CY); }
111 static void make_L(SkPath* path) { path->moveTo(CX, CY).lineTo(CX, CY); }
112 static void make_Q(SkPath* path) { path->moveTo(CX, CY).quadTo(CX, CY, CX, CY); }
113 static void make_C(SkPath* path) { path->moveTo(CX, CY).cubicTo(CX, CY, CX, CY, CX, CY); }
115 /* Two invariants are tested: How does an empty/degenerate path draw?
116 * - if the path is drawn inverse, it should draw everywhere
117 * - if the path is drawn non-inverse, it should draw nowhere
120 * - path (empty, degenerate line/quad/cubic w/ and w/o close
122 * - path filltype
123 * - path stroke variants (e.g. caps, joins, width)
137 SkPath path;
138 gMakeProc[i](&path);
140 path.close();
147 path.setFillType(gFills[fill]);
148 bool shouldDraw = path.isInverseFillType();
149 iter_paint(reporter, path, shouldDraw, allowCaps ? kDrawCaps : kDontDrawCaps);