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 testOpCubicsMain(PathOpsThreadState* data) { | 10 static void testOpCubicsMain(PathOpsThreadState* data) { |
12 #if DEBUG_SHOW_TEST_NAME | 11 #if DEBUG_SHOW_TEST_NAME |
13 strncpy(DEBUG_FILENAME_STRING, "", DEBUG_FILENAME_STRING_LENGTH); | 12 strncpy(DEBUG_FILENAME_STRING, "", DEBUG_FILENAME_STRING_LENGTH); |
14 #endif | 13 #endif |
15 SkASSERT(data); | 14 SkASSERT(data); |
16 PathOpsThreadState& state = *data; | 15 PathOpsThreadState& state = *data; |
17 char pathStr[1024]; // gdb: set print elements 400 | 16 char pathStr[1024]; // gdb: set print elements 400 |
18 bool progress = state.fReporter->verbose(); // FIXME: break out into its own
parameter? | 17 bool progress = state.fReporter->verbose(); // FIXME: break out into its own
parameter? |
19 if (progress) { | 18 if (progress) { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 *testRunner.fRunnables.append() = SkNEW_ARGS(PathOpsThreaded
Runnable, | 76 *testRunner.fRunnables.append() = SkNEW_ARGS(PathOpsThreaded
Runnable, |
78 (&testOpCubicsMain, a, b, c, d, &testRunner)); | 77 (&testOpCubicsMain, a, b, c, d, &testRunner)); |
79 } | 78 } |
80 } | 79 } |
81 if (!reporter->allowExtendedTest()) goto finish; | 80 if (!reporter->allowExtendedTest()) goto finish; |
82 } | 81 } |
83 } | 82 } |
84 finish: | 83 finish: |
85 testRunner.render(); | 84 testRunner.render(); |
86 } | 85 } |
OLD | NEW |