From 0361032c0b53401030a720bc8b4930c3ec59f19e Mon Sep 17 00:00:00 2001 From: "caryclark@google.com" Date: Thu, 18 Apr 2013 15:58:21 +0000 Subject: path ops work in progress fix bugs in tests on 32 bit release Most changes revolve around pinning computed t values very close to zero and one. git-svn-id: http://skia.googlecode.com/svn/trunk@8745 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/PathOpsSimplifyTrianglesThreadedTest.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/PathOpsSimplifyTrianglesThreadedTest.cpp') diff --git a/tests/PathOpsSimplifyTrianglesThreadedTest.cpp b/tests/PathOpsSimplifyTrianglesThreadedTest.cpp index 4030a67a7b..42aad38a48 100755 --- a/tests/PathOpsSimplifyTrianglesThreadedTest.cpp +++ b/tests/PathOpsSimplifyTrianglesThreadedTest.cpp @@ -12,6 +12,7 @@ static void testSimplifyTrianglesMain(PathOpsThreadState* data) { PathOpsThreadState& state = *data; char pathStr[1024]; sk_bzero(pathStr, sizeof(pathStr)); + state.fKey = "?"; int ax = state.fA & 0x03; int ay = state.fA >> 2; int bx = state.fB & 0x03; @@ -53,9 +54,11 @@ static void testSimplifyTrianglesMain(PathOpsThreadState* data) { str += sprintf(str, " path.lineTo(%d, %d);\n", fx, fy); str += sprintf(str, " path.close();\n"); outputProgress(state.fPathStr, pathStr, SkPath::kWinding_FillType); + ShowTestName(&state, d, e, f, 0); testSimplify(path, false, out, state, pathStr); path.setFillType(SkPath::kEvenOdd_FillType); outputProgress(state.fPathStr, pathStr, SkPath::kEvenOdd_FillType); + ShowTestName(&state, d, e, f, 1); testSimplify(path, true, out, state, pathStr); } } -- cgit v1.2.3