Index: tests/PathOpsConicLineIntersectionTest.cpp |
diff --git a/tests/PathOpsConicLineIntersectionTest.cpp b/tests/PathOpsConicLineIntersectionTest.cpp |
index 62195060e90cbce9b20a47d932ae3dfc19976716..ecc4a47f179f044efd1fdc64fd03f4c89c6ae01e 100644 |
--- a/tests/PathOpsConicLineIntersectionTest.cpp |
+++ b/tests/PathOpsConicLineIntersectionTest.cpp |
@@ -6,6 +6,7 @@ |
*/ |
#include "PathOpsExtendedTest.h" |
#include "PathOpsTestCommon.h" |
+#include "SkGeometry.h" |
#include "SkIntersections.h" |
#include "SkPathOpsConic.h" |
#include "SkPathOpsLine.h" |
@@ -103,7 +104,9 @@ DEF_TEST(PathOpsConicLineIntersection, reporter) { |
SkPoint pts[3] = { conic.fPts.fPts[0].asSkPoint(), conic.fPts.fPts[1].asSkPoint(), |
conic.fPts.fPts[2].asSkPoint() }; |
SkPoint reduced[3]; |
- SkPath::Verb order1 = SkReduceOrder::Conic(pts, conic.fWeight, reduced); |
+ SkConic floatConic; |
+ floatConic.set(pts, conic.fWeight); |
+ SkPath::Verb order1 = SkReduceOrder::Conic(floatConic, reduced); |
if (order1 != SkPath::kConic_Verb) { |
SkDebugf("%s [%d] conic verb=%d\n", __FUNCTION__, iIndex, order1); |
REPORTER_ASSERT(reporter, 0); |