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/PathOpsExtendedTest.cpp | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'tests/PathOpsExtendedTest.cpp') diff --git a/tests/PathOpsExtendedTest.cpp b/tests/PathOpsExtendedTest.cpp index f303ad1f16..c316242f75 100644 --- a/tests/PathOpsExtendedTest.cpp +++ b/tests/PathOpsExtendedTest.cpp @@ -289,7 +289,7 @@ int comparePaths(skiatest::Reporter* reporter, const char* filename, const SkPat return errors2x2 > MAX_ERRORS ? errors2x2 : 0; } -const int gTestFirst = 4; +const int gTestFirst = 6; static int gTestNo = gTestFirst; static SkTDArray gTestOp; @@ -654,13 +654,34 @@ void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count, #endif (*tests[index].fun)(reporter, tests[index].str); } - if (tests[index].fun == stopTest) { - SkDebugf("lastTest\n"); + if (tests[index].fun == stopTest || index == last) { break; } - if (index == last) { + index += reverse ? -1 : 1; + } while (true); +#if DEBUG_SHOW_TEST_NAME + SkDebugf( + "\n" + "\n" + "\n" + "