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 // four rects, of four sizes | 10 // four rects, of four sizes |
12 // for 3 smaller sizes, tall, wide | 11 // for 3 smaller sizes, tall, wide |
13 // top upper mid lower bottom aligned (3 bits, 5 values) | 12 // top upper mid lower bottom aligned (3 bits, 5 values) |
14 // same with x (3 bits, 5 values) | 13 // same with x (3 bits, 5 values) |
15 // not included, square, tall, wide (2 bits) | 14 // not included, square, tall, wide (2 bits) |
16 // cw or ccw (1 bit) | 15 // cw or ccw (1 bit) |
17 | 16 |
18 static void testPathOpsRectsMain(PathOpsThreadState* data) | 17 static void testPathOpsRectsMain(PathOpsThreadState* data) |
19 { | 18 { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 *testRunner.fRunnables.append() = SkNEW_ARGS(PathOpsThreaded
Runnable, | 83 *testRunner.fRunnables.append() = SkNEW_ARGS(PathOpsThreaded
Runnable, |
85 (&testPathOpsRectsMain, a, b, c, d, &testRunner)); | 84 (&testPathOpsRectsMain, a, b, c, d, &testRunner)); |
86 } | 85 } |
87 } | 86 } |
88 if (!reporter->allowExtendedTest()) goto finish; | 87 if (!reporter->allowExtendedTest()) goto finish; |
89 } | 88 } |
90 } | 89 } |
91 finish: | 90 finish: |
92 testRunner.render(); | 91 testRunner.render(); |
93 } | 92 } |
OLD | NEW |