aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/OffsetSimplePolyTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/OffsetSimplePolyTest.cpp')
-rw-r--r--tests/OffsetSimplePolyTest.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/OffsetSimplePolyTest.cpp b/tests/OffsetSimplePolyTest.cpp
index de720b5cf2..547dc9e529 100644
--- a/tests/OffsetSimplePolyTest.cpp
+++ b/tests/OffsetSimplePolyTest.cpp
@@ -5,7 +5,7 @@
* found in the LICENSE file.
*/
#include "Test.h"
-#include "SkOffsetPolygon.h"
+#include "SkPolyUtils.h"
static bool is_convex(const SkTDArray<SkPoint>& poly) {
if (poly.count() < 3) {
@@ -200,10 +200,7 @@ DEF_TEST(OffsetSimplePoly, reporter) {
*intersectingPoly.push() = SkPoint::Make(-43.30f, -25.0f);
*intersectingPoly.push() = SkPoint::Make(-14.43f, -25.0f);
- result = SkOffsetSimplePolygon(&intersectingPoly[0], intersectingPoly.count(), -100,
- &offsetPoly);
+ // SkOffsetSimplePolygon now assumes that the input is simple, so we'll just check for that
+ result = SkIsSimplePolygon(&intersectingPoly[0], intersectingPoly.count());
REPORTER_ASSERT(reporter, !result);
-
-
-
}