| 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 void testOpCubicsMain(PathOpsThreadState* data) | 10 static void testOpCubicsMain(PathOpsThreadState* data) |
| 11 { | 11 { |
| 12 #if DEBUG_SHOW_TEST_NAME |
| 13 strncpy(DEBUG_FILENAME_STRING, "", DEBUG_FILENAME_STRING_LENGTH); |
| 14 #endif |
| 12 SkASSERT(data); | 15 SkASSERT(data); |
| 13 PathOpsThreadState& state = *data; | 16 PathOpsThreadState& state = *data; |
| 14 char pathStr[1024]; // gdb: set print elements 400 | 17 char pathStr[1024]; // gdb: set print elements 400 |
| 15 sk_bzero(pathStr, sizeof(pathStr)); | 18 sk_bzero(pathStr, sizeof(pathStr)); |
| 16 for (int a = 0 ; a < 6; ++a) { | 19 for (int a = 0 ; a < 6; ++a) { |
| 17 for (int b = a + 1 ; b < 7; ++b) { | 20 for (int b = a + 1 ; b < 7; ++b) { |
| 18 for (int c = 0 ; c < 6; ++c) { | 21 for (int c = 0 ; c < 6; ++c) { |
| 19 for (int d = c + 1 ; d < 7; ++d) { | 22 for (int d = c + 1 ; d < 7; ++d) { |
| 20 for (int e = SkPath::kWinding_FillType ; e <= SkPath::kEvenO
dd_FillType; ++e) { | 23 for (int e = SkPath::kWinding_FillType ; e <= SkPath::kEvenO
dd_FillType; ++e) { |
| 21 for (int f = SkPath::kWinding_FillType ; f <= SkPath::kEvenOdd_FillType; ++f
) { | 24 for (int f = SkPath::kWinding_FillType ; f <= SkPath::kEvenOdd_FillType; ++f
) { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 } | 74 } |
| 72 if (!reporter->allowExtendedTest()) goto finish; | 75 if (!reporter->allowExtendedTest()) goto finish; |
| 73 } | 76 } |
| 74 } | 77 } |
| 75 finish: | 78 finish: |
| 76 testRunner.render(); | 79 testRunner.render(); |
| 77 } | 80 } |
| 78 | 81 |
| 79 #include "TestClassDef.h" | 82 #include "TestClassDef.h" |
| 80 DEFINE_TESTCLASS_SHORT(PathOpsOpCubicsThreadedTest) | 83 DEFINE_TESTCLASS_SHORT(PathOpsOpCubicsThreadedTest) |
| OLD | NEW |