From 08bc8488fa2ea2d2a17efb1443f0ec6579d5a3c8 Mon Sep 17 00:00:00 2001 From: caryclark Date: Fri, 24 Apr 2015 09:08:57 -0700 Subject: fix multiple intersection logic When three or more curves intersect at the same point, ensure that each curve records the intersections of the others. This fixes a number of cubic tests. TBR=reed@google.com BUG=skia:3588 Review URL: https://codereview.chromium.org/1105943002 --- tests/PathOpsOpCubicThreadedTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/PathOpsOpCubicThreadedTest.cpp') diff --git a/tests/PathOpsOpCubicThreadedTest.cpp b/tests/PathOpsOpCubicThreadedTest.cpp index 0d905c6e23..26617b885f 100644 --- a/tests/PathOpsOpCubicThreadedTest.cpp +++ b/tests/PathOpsOpCubicThreadedTest.cpp @@ -7,7 +7,7 @@ #include "PathOpsExtendedTest.h" #include "PathOpsThreadedCommon.h" -static int loopNo = 132; +static int loopNo = 158; static void testOpCubicsMain(PathOpsThreadState* data) { #if DEBUG_SHOW_TEST_NAME @@ -15,7 +15,7 @@ static void testOpCubicsMain(PathOpsThreadState* data) { #endif SkASSERT(data); PathOpsThreadState& state = *data; - char pathStr[1024]; // gdb: set print elements 400 + char pathStr[1024]; bool progress = state.fReporter->verbose(); // FIXME: break out into its own parameter? if (progress) { sk_bzero(pathStr, sizeof(pathStr)); -- cgit v1.2.3