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 #include "TestClassDef.h" | |
10 | 9 |
11 static void testSimplifyTrianglesMain(PathOpsThreadState* data) { | 10 static void testSimplifyTrianglesMain(PathOpsThreadState* data) { |
12 SkASSERT(data); | 11 SkASSERT(data); |
13 PathOpsThreadState& state = *data; | 12 PathOpsThreadState& state = *data; |
14 char pathStr[1024]; | 13 char pathStr[1024]; |
15 bool progress = state.fReporter->verbose(); // FIXME: break out into its own
parameter? | 14 bool progress = state.fReporter->verbose(); // FIXME: break out into its own
parameter? |
16 if (progress) { | 15 if (progress) { |
17 sk_bzero(pathStr, sizeof(pathStr)); | 16 sk_bzero(pathStr, sizeof(pathStr)); |
18 } | 17 } |
19 state.fKey = "?"; | 18 state.fKey = "?"; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 } | 92 } |
94 *testRunner.fRunnables.append() = SkNEW_ARGS(PathOpsThreadedRunn
able, | 93 *testRunner.fRunnables.append() = SkNEW_ARGS(PathOpsThreadedRunn
able, |
95 (&testSimplifyTrianglesMain, a, b, c, 0, &testRunner)); | 94 (&testSimplifyTrianglesMain, a, b, c, 0, &testRunner)); |
96 } | 95 } |
97 if (!reporter->allowExtendedTest()) goto finish; | 96 if (!reporter->allowExtendedTest()) goto finish; |
98 } | 97 } |
99 } | 98 } |
100 finish: | 99 finish: |
101 testRunner.render(); | 100 testRunner.render(); |
102 } | 101 } |
OLD | NEW |