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 // four rects, of four sizes | 10 // four rects, of four sizes |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 } | 180 } |
181 } | 181 } |
182 } | 182 } |
183 } | 183 } |
184 } | 184 } |
185 } | 185 } |
186 } | 186 } |
187 } | 187 } |
188 | 188 |
189 DEF_TEST(PathOpsSimplifyRectsThreaded, reporter) { | 189 DEF_TEST(PathOpsSimplifyRectsThreaded, reporter) { |
190 initializeTests(reporter, "testLine"); | 190 int threadCount = initializeTests(reporter, "testLine"); |
191 PathOpsThreadedTestRunner testRunner(reporter); | 191 PathOpsThreadedTestRunner testRunner(reporter, threadCount); |
192 for (int a = 0; a < 8; ++a) { // outermost | 192 for (int a = 0; a < 8; ++a) { // outermost |
193 for (int b = a ; b < 8; ++b) { | 193 for (int b = a ; b < 8; ++b) { |
194 for (int c = b ; c < 8; ++c) { | 194 for (int c = b ; c < 8; ++c) { |
195 for (int d = c; d < 8; ++d) { | 195 for (int d = c; d < 8; ++d) { |
196 *testRunner.fRunnables.append() = SkNEW_ARGS(PathOpsThre
adedRunnable, | 196 *testRunner.fRunnables.append() = SkNEW_ARGS(PathOpsThre
adedRunnable, |
197 (&testSimplify4x4RectsMain, a, b, c, d, &testRun
ner)); | 197 (&testSimplify4x4RectsMain, a, b, c, d, &testRun
ner)); |
198 } | 198 } |
199 if (!reporter->allowExtendedTest()) goto finish; | 199 if (!reporter->allowExtendedTest()) goto finish; |
200 } | 200 } |
201 } | 201 } |
202 } | 202 } |
203 finish: | 203 finish: |
204 testRunner.render(); | 204 testRunner.render(); |
205 } | 205 } |
OLD | NEW |