diff options
author | 2013-02-19 12:49:33 +0000 | |
---|---|---|
committer | 2013-02-19 12:49:33 +0000 | |
commit | d0a19eb9140ecb968357f798f06d2b052b51fd89 (patch) | |
tree | cac367b546b47a3a8b12a7f21e8429f80fbf55df /experimental/Intersection/SimplifyNew_Test.cpp | |
parent | 70158de4cd300ff3ed9c15e942f8eac9b4e1ed84 (diff) |
shape ops work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@7766 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/Intersection/SimplifyNew_Test.cpp')
-rw-r--r-- | experimental/Intersection/SimplifyNew_Test.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/experimental/Intersection/SimplifyNew_Test.cpp b/experimental/Intersection/SimplifyNew_Test.cpp index 4c83be7b6f..78b815ac89 100644 --- a/experimental/Intersection/SimplifyNew_Test.cpp +++ b/experimental/Intersection/SimplifyNew_Test.cpp @@ -3832,12 +3832,26 @@ static void cubicOp19i() { testShapeOp(path, pathB, kIntersect_Op); } -static void (*firstTest)() = cubicOp19i; +static void cubicOp20d() { + SkPath path, pathB; + path.setFillType(SkPath::kWinding_FillType); + path.moveTo(0,1); + path.cubicTo(0,1, 6,0, 2,1); + path.close(); + pathB.setFillType(SkPath::kWinding_FillType); + pathB.moveTo(0,6); + pathB.cubicTo(1,2, 1,0, 1,0); + pathB.close(); + testShapeOp(path, pathB, kDifference_Op); +} + +static void (*firstTest)() = cubicOp20d; static struct { void (*fun)(); const char* str; } tests[] = { + TEST(cubicOp20d), TEST(cubicOp19i), TEST(cubicOp18d), TEST(cubicOp17d), |