aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PathOpsSimplifyTrianglesThreadedTest.cpp
diff options
context:
space:
mode:
authorGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-18 15:58:21 +0000
committerGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-18 15:58:21 +0000
commit0361032c0b53401030a720bc8b4930c3ec59f19e (patch)
tree9bb66d560604ef23c9d015c10d6d73fece0928e7 /tests/PathOpsSimplifyTrianglesThreadedTest.cpp
parentf707adc4f8b22fd1a59a900b64333480de653c5b (diff)
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
Diffstat (limited to 'tests/PathOpsSimplifyTrianglesThreadedTest.cpp')
-rwxr-xr-xtests/PathOpsSimplifyTrianglesThreadedTest.cpp3
1 files changed, 3 insertions, 0 deletions
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);
}
}