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/PathOpsDCubicTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/PathOpsDCubicTest.cpp') diff --git a/tests/PathOpsDCubicTest.cpp b/tests/PathOpsDCubicTest.cpp index d6994943bd..c7c9f2ab96 100644 --- a/tests/PathOpsDCubicTest.cpp +++ b/tests/PathOpsDCubicTest.cpp @@ -20,7 +20,8 @@ DEF_TEST(PathOpsDCubic, reporter) { for (size_t index = 0; index < tests_count; ++index) { const SkDCubic& cubic = tests[index]; SkASSERT(ValidCubic(cubic)); - bool result = cubic.clockwise(); + bool skip; + bool result = cubic.clockwise(&skip); if (!result) { SkDebugf("%s [%d] expected clockwise\n", __FUNCTION__, index); REPORTER_ASSERT(reporter, 0); -- cgit v1.2.3