OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 #include "PathOpsExtendedTest.h" | 7 #include "PathOpsExtendedTest.h" |
8 #include "PathOpsThreadedCommon.h" | 8 #include "PathOpsThreadedCommon.h" |
9 | 9 |
10 static void testSimplifyQuadralateralsMain(PathOpsThreadState* data) | 10 static void testSimplifyQuadralateralsMain(PathOpsThreadState* data) |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 path.setFillType(SkPath::kEvenOdd_FillType); | 62 path.setFillType(SkPath::kEvenOdd_FillType); |
63 outputProgress(state.fPathStr, pathStr, SkPath::kEvenOdd_Fil
lType); | 63 outputProgress(state.fPathStr, pathStr, SkPath::kEvenOdd_Fil
lType); |
64 testSimplify(path, true, out, state, pathStr); | 64 testSimplify(path, true, out, state, pathStr); |
65 } | 65 } |
66 } | 66 } |
67 } | 67 } |
68 } | 68 } |
69 } | 69 } |
70 | 70 |
71 static void PathOpsSimplifyQuadralateralsThreadedTest(skiatest::Reporter* report
er) { | 71 static void PathOpsSimplifyQuadralateralsThreadedTest(skiatest::Reporter* report
er) { |
72 int threadCount = initializeTests("testQuadralaterals"); | 72 int threadCount = initializeTests(reporter, "testQuadralaterals"); |
73 PathOpsThreadedTestRunner testRunner(reporter, threadCount); | 73 PathOpsThreadedTestRunner testRunner(reporter, threadCount); |
74 for (int a = 0; a < 16; ++a) { | 74 for (int a = 0; a < 16; ++a) { |
75 for (int b = a ; b < 16; ++b) { | 75 for (int b = a ; b < 16; ++b) { |
76 for (int c = b ; c < 16; ++c) { | 76 for (int c = b ; c < 16; ++c) { |
77 for (int d = c; d < 16; ++d) { | 77 for (int d = c; d < 16; ++d) { |
78 *testRunner.fRunnables.append() = SkNEW_ARGS(PathOpsThreaded
Runnable, | 78 *testRunner.fRunnables.append() = SkNEW_ARGS(PathOpsThreaded
Runnable, |
79 (&testSimplifyQuadralateralsMain, a, b, c, d, &testR
unner)); | 79 (&testSimplifyQuadralateralsMain, a, b, c, d, &testR
unner)); |
80 } | 80 } |
81 if (!reporter->allowExtendedTest()) goto finish; | 81 if (!reporter->allowExtendedTest()) goto finish; |
82 } | 82 } |
83 } | 83 } |
84 } | 84 } |
85 finish: | 85 finish: |
86 testRunner.render(); | 86 testRunner.render(); |
87 } | 87 } |
88 | 88 |
89 #include "TestClassDef.h" | 89 #include "TestClassDef.h" |
90 DEFINE_TESTCLASS_SHORT(PathOpsSimplifyQuadralateralsThreadedTest) | 90 DEFINE_TESTCLASS_SHORT(PathOpsSimplifyQuadralateralsThreadedTest) |
OLD | NEW |