| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "PathOpsTestCommon.h" | 7 #include "PathOpsTestCommon.h" |
| 8 #include "SkOpSegment.h" | 8 #include "SkOpSegment.h" |
| 9 #include "SkTArray.h" | 9 #include "SkTArray.h" |
| 10 #include "Test.h" | 10 #include "Test.h" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 {cubics[12], 4, 0.5, 1, {0, 0}}, | 162 {cubics[12], 4, 0.5, 1, {0, 0}}, |
| 163 {lines[8], 2, 0.5, 1, {0, 0}}, | 163 {lines[8], 2, 0.5, 1, {0, 0}}, |
| 164 {cubics[11], 4, 0.5, 0, {0, 0}}, | 164 {cubics[11], 4, 0.5, 0, {0, 0}}, |
| 165 {lines[9], 2, 0.5, 1, {0, 0}}, | 165 {lines[9], 2, 0.5, 1, {0, 0}}, |
| 166 {cubics[12], 4, 0.5, 0, {0, 0}}, | 166 {cubics[12], 4, 0.5, 0, {0, 0}}, |
| 167 {lines[8], 2, 0.5, 0, {0, 0}}, | 167 {lines[8], 2, 0.5, 0, {0, 0}}, |
| 168 {cubics[11], 4, 0.5, 1, {0, 0}}, | 168 {cubics[11], 4, 0.5, 1, {0, 0}}, |
| 169 {lines[9], 2, 0.5, 0, {0, 0}}, | 169 {lines[9], 2, 0.5, 0, {0, 0}}, |
| 170 }; | 170 }; |
| 171 | 171 |
| 172 static const SortSet set13[] = { | 172 /*static const SortSet set13[] = { |
| 173 {cubics[13], 4, 0.5, 0.400631046, {0, 0}}, | 173 {cubics[13], 4, 0.5, 0.400631046, {0, 0}}, |
| 174 {lines[10], 2, 0.791666667, 0.928, {0, 0}}, | 174 {lines[10], 2, 0.791666667, 0.928, {0, 0}}, |
| 175 {lines[10], 2, 0.791666667, 0.333333333, {0, 0}}, | 175 {lines[10], 2, 0.791666667, 0.333333333, {0, 0}}, |
| 176 {cubics[13], 4, 0.5, 0.866666667, {0, 0}}, | 176 {cubics[13], 4, 0.5, 0.866666667, {0, 0}}, |
| 177 }; | 177 };*/ |
| 178 | 178 |
| 179 static const SortSet set14[] = { | 179 static const SortSet set14[] = { |
| 180 {quads[2], 3, 0.5, 0.310102051, {0, 0}}, | 180 {quads[2], 3, 0.5, 0.310102051, {0, 0}}, |
| 181 {quads[3], 3, 0.5, 0.2, {0, 0}}, | 181 {quads[3], 3, 0.5, 0.2, {0, 0}}, |
| 182 {quads[3], 3, 0.5, 0.770156212, {0, 0}}, | 182 {quads[3], 3, 0.5, 0.770156212, {0, 0}}, |
| 183 {quads[2], 3, 0.5, 0.7, {0, 0}}, | 183 {quads[2], 3, 0.5, 0.7, {0, 0}}, |
| 184 }; | 184 }; |
| 185 | 185 |
| 186 /*static const SortSet set15[] = { | 186 /*static const SortSet set15[] = { |
| 187 {cubics[14], 4, 0.93081374, 1, {0, 0}}, | 187 {cubics[14], 4, 0.93081374, 1, {0, 0}}, |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 } | 469 } |
| 470 } | 470 } |
| 471 #endif | 471 #endif |
| 472 | 472 |
| 473 #include "TestClassDef.h" | 473 #include "TestClassDef.h" |
| 474 DEFINE_TESTCLASS_SHORT(PathOpsAngleTest) | 474 DEFINE_TESTCLASS_SHORT(PathOpsAngleTest) |
| 475 | 475 |
| 476 DEFINE_TESTCLASS_SHORT(PathOpsAngleTestOne) | 476 DEFINE_TESTCLASS_SHORT(PathOpsAngleTestOne) |
| 477 | 477 |
| 478 // DEFINE_TESTCLASS_SHORT(PathOpsAngleFindSlop) | 478 // DEFINE_TESTCLASS_SHORT(PathOpsAngleFindSlop) |
| OLD | NEW |