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/PathOpsDebug.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/PathOpsDebug.cpp') diff --git a/tests/PathOpsDebug.cpp b/tests/PathOpsDebug.cpp index d4edd14b48..f5708ebb06 100755 --- a/tests/PathOpsDebug.cpp +++ b/tests/PathOpsDebug.cpp @@ -1212,6 +1212,16 @@ void SkOpContour::dumpSpans() const { } while ((segment = segment->next())); } +void SkOpCurve::dump() const { + int count = SkPathOpsVerbToPoints(SkDEBUGRELEASE(fVerb, SkPath::kCubic_Verb)); + SkDebugf("{{"); + int index; + for (index = 0; index <= count - 1; ++index) { + SkDebugf("{%1.9gf,%1.9gf}, ", fPts[index].fX, fPts[index].fY); + } + SkDebugf("{%1.9gf,%1.9gf}}}\n", fPts[index].fX, fPts[index].fY); +} + #ifdef SK_DEBUG const SkOpAngle* SkOpGlobalState::debugAngle(int id) const { const SkOpContour* contour = fHead; -- cgit v1.2.3