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 testSimplifyQuadralateralsMain(PathOpsThreadState* data) | 10 static void testSimplifyQuadralateralsMain(PathOpsThreadState* data) |
12 { | 11 { |
13 SkASSERT(data); | 12 SkASSERT(data); |
14 PathOpsThreadState& state = *data; | 13 PathOpsThreadState& state = *data; |
15 char pathStr[1024]; | 14 char pathStr[1024]; |
16 bool progress = state.fReporter->verbose(); // FIXME: break out into its own
parameter? | 15 bool progress = state.fReporter->verbose(); // FIXME: break out into its own
parameter? |
17 if (progress) { | 16 if (progress) { |
18 sk_bzero(pathStr, sizeof(pathStr)); | 17 sk_bzero(pathStr, sizeof(pathStr)); |
19 } | 18 } |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 *testRunner.fRunnables.append() = SkNEW_ARGS(PathOpsThreaded
Runnable, | 85 *testRunner.fRunnables.append() = SkNEW_ARGS(PathOpsThreaded
Runnable, |
87 (&testSimplifyQuadralateralsMain, a, b, c, d, &testR
unner)); | 86 (&testSimplifyQuadralateralsMain, a, b, c, d, &testR
unner)); |
88 } | 87 } |
89 if (!reporter->allowExtendedTest()) goto finish; | 88 if (!reporter->allowExtendedTest()) goto finish; |
90 } | 89 } |
91 } | 90 } |
92 } | 91 } |
93 finish: | 92 finish: |
94 testRunner.render(); | 93 testRunner.render(); |
95 } | 94 } |
OLD | NEW |