Home | History | Annotate | Download | only in gm

Lines Matching defs:path

13 static void test_hittest(SkCanvas* canvas, const SkPath& path) {
15 SkRect r = path.getBounds();
18 canvas->drawPath(path, paint);
25 if (path.contains(x, y)) {
33 SkPath path;
43 path.lineTo(randoms[0] * scale, randoms[1] * scale);
44 path.quadTo(randoms[2] * scale, randoms[3] * scale,
46 path.cubicTo(randoms[6] * scale, randoms[7] * scale,
51 path.setFillType(SkPath::kEvenOdd_FillType);
52 path.offset(SkIntToScalar(20), SkIntToScalar(20));
54 test_hittest(canvas, path);
57 path.setFillType(SkPath::kWinding_FillType);
59 test_hittest(canvas, path);