From 03b03cad01628146bbb8d4f33c073bd0c77ee558 Mon Sep 17 00:00:00 2001 From: caryclark Date: Thu, 23 Apr 2015 09:13:37 -0700 Subject: working on initial winding for cubics Path ops works well for all tests except for cubics. Isolate failures caused by cubics, and do a better job of computing the initial winding for cubics. TBR=reed@google.com BUG=skia:3588 Review URL: https://codereview.chromium.org/1096923003 --- tests/PathOpsCubicIntersectionTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/PathOpsCubicIntersectionTest.cpp') diff --git a/tests/PathOpsCubicIntersectionTest.cpp b/tests/PathOpsCubicIntersectionTest.cpp index 77f0995f27..138e6f484f 100644 --- a/tests/PathOpsCubicIntersectionTest.cpp +++ b/tests/PathOpsCubicIntersectionTest.cpp @@ -625,7 +625,8 @@ static void selfOneOff(skiatest::Reporter* reporter, int index) { SkScalar loopT; SkScalar d[3]; SkCubicType cubicType = SkClassifyCubic(c, d); - if (SkDCubic::ComplexBreak(c, &loopT) && cubicType == SkCubicType::kLoop_SkCubicType) { + SkDCubic::CubicType dType; + if (SkDCubic::ComplexBreak(c, &loopT, &dType) && cubicType == SkCubicType::kLoop_SkCubicType) { SkIntersections i; SkPoint twoCubics[7]; SkChopCubicAt(c, twoCubics, loopT); -- cgit v1.2.3