Index: tests/PathOpsDQuadTest.cpp |
diff --git a/tests/PathOpsDQuadTest.cpp b/tests/PathOpsDQuadTest.cpp |
index 5921b695782398911abef0ad0eb142e034c5162f..e6f1deb72f1688d1f0c48c80c65b66569a1570ef 100644 |
--- a/tests/PathOpsDQuadTest.cpp |
+++ b/tests/PathOpsDQuadTest.cpp |
@@ -5,7 +5,9 @@ |
* found in the LICENSE file. |
*/ |
#include "PathOpsTestCommon.h" |
+#include "SkPath.h" |
#include "SkPathOpsQuad.h" |
+#include "SkRRect.h" |
#include "Test.h" |
static const SkDQuad tests[] = { |
@@ -21,7 +23,7 @@ static const SkDPoint inPoint[]= { |
{1, 0.8}, |
{1.8, 1}, |
{1.5, 1}, |
- {0.5, 0.5}, |
+ {0.4999, 0.5}, // was 0.5, 0.5; points on the hull are considered outside |
}; |
static const SkDPoint outPoint[]= { |
@@ -51,5 +53,16 @@ static void PathOpsDQuadTest(skiatest::Reporter* reporter) { |
} |
} |
+static void PathOpsRRectTest(skiatest::Reporter* reporter) { |
+ SkPath path; |
+ SkRRect rRect; |
+ SkRect rect = {135, 143, 250, 177}; |
+ SkVector radii[4] = {{8, 8}, {8, 8}, {0, 0}, {0, 0}}; |
+ rRect.setRectRadii(rect, radii); |
+ path.addRRect(rRect); |
+} |
+ |
#include "TestClassDef.h" |
DEFINE_TESTCLASS_SHORT(PathOpsDQuadTest) |
+ |
+DEFINE_TESTCLASS_SHORT(PathOpsRRectTest) |