| 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 int loopNo = 158; | 10 static int loopNo = 158; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 } | 80 } |
| 81 } | 81 } |
| 82 | 82 |
| 83 DEF_TEST(PathOpsOpCubicsThreaded, reporter) { | 83 DEF_TEST(PathOpsOpCubicsThreaded, reporter) { |
| 84 initializeTests(reporter, "cubicOp"); | 84 initializeTests(reporter, "cubicOp"); |
| 85 PathOpsThreadedTestRunner testRunner(reporter); | 85 PathOpsThreadedTestRunner testRunner(reporter); |
| 86 for (int a = 0; a < 6; ++a) { // outermost | 86 for (int a = 0; a < 6; ++a) { // outermost |
| 87 for (int b = a + 1; b < 7; ++b) { | 87 for (int b = a + 1; b < 7; ++b) { |
| 88 for (int c = 0 ; c < 6; ++c) { | 88 for (int c = 0 ; c < 6; ++c) { |
| 89 for (int d = c + 1; d < 7; ++d) { | 89 for (int d = c + 1; d < 7; ++d) { |
| 90 *testRunner.fRunnables.append() = SkNEW_ARGS(PathOpsThreaded
Runnable, | 90 *testRunner.fRunnables.append() = |
| 91 (&testOpCubicsMain, a, b, c, d, &testRunner)); | 91 new PathOpsThreadedRunnable(&testOpCubicsMain, a, b,
c, d, &testRunner); |
| 92 } | 92 } |
| 93 } | 93 } |
| 94 if (!reporter->allowExtendedTest()) goto finish; | 94 if (!reporter->allowExtendedTest()) goto finish; |
| 95 } | 95 } |
| 96 } | 96 } |
| 97 finish: | 97 finish: |
| 98 testRunner.render(); | 98 testRunner.render(); |
| 99 ShowTestArray("cubicOp"); | 99 ShowTestArray("cubicOp"); |
| 100 } | 100 } |
| OLD | NEW |