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 testSimplifyQuadsMain(PathOpsThreadState* data) | 10 static void testSimplifyQuadsMain(PathOpsThreadState* data) |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 } | 79 } |
80 | 80 |
81 DEF_TEST(PathOpsSimplifyQuadsThreaded, reporter) { | 81 DEF_TEST(PathOpsSimplifyQuadsThreaded, reporter) { |
82 initializeTests(reporter, "testQuads"); | 82 initializeTests(reporter, "testQuads"); |
83 PathOpsThreadedTestRunner testRunner(reporter); | 83 PathOpsThreadedTestRunner testRunner(reporter); |
84 int a = 0; | 84 int a = 0; |
85 for (; a < 16; ++a) { | 85 for (; a < 16; ++a) { |
86 for (int b = a ; b < 16; ++b) { | 86 for (int b = a ; b < 16; ++b) { |
87 for (int c = b ; c < 16; ++c) { | 87 for (int c = b ; c < 16; ++c) { |
88 for (int d = c; d < 16; ++d) { | 88 for (int d = c; d < 16; ++d) { |
89 *testRunner.fRunnables.append() = SkNEW_ARGS(PathOpsThreaded
Runnable, | 89 *testRunner.fRunnables.append() = new PathOpsThreadedRunnabl
e( |
90 (&testSimplifyQuadsMain, a, b, c, d, &testRunner)); | 90 &testSimplifyQuadsMain, a, b, c, d, &testRunner); |
91 } | 91 } |
92 if (!reporter->allowExtendedTest()) goto finish; | 92 if (!reporter->allowExtendedTest()) goto finish; |
93 } | 93 } |
94 } | 94 } |
95 } | 95 } |
96 finish: | 96 finish: |
97 testRunner.render(); | 97 testRunner.render(); |
98 ShowTestArray("testQuads"); | 98 ShowTestArray("testQuads"); |
99 } | 99 } |
OLD | NEW |