| 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 "PathOpsCubicIntersectionTestData.h" | 7 #include "PathOpsCubicIntersectionTestData.h" |
| 8 #include "PathOpsTestCommon.h" | 8 #include "PathOpsTestCommon.h" |
| 9 #include "SkIntersections.h" | 9 #include "SkIntersections.h" |
| 10 #include "SkPathOpsRect.h" | 10 #include "SkPathOpsRect.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 156 |
| 157 {{{18.1312339, 31.6473732}, {95.5711034, 63.5350219}, {92.3283165, 62.0158945}, | 157 {{{18.1312339, 31.6473732}, {95.5711034, 63.5350219}, {92.3283165, 62.0158945}, |
| 158 {18.5656052, 32.1268808}}}, | 158 {18.5656052, 32.1268808}}}, |
| 159 {{{97.402018, 35.7169972}, {33.1127443, 25.8935163}, {1.13970027, 54.9424981}, | 159 {{{97.402018, 35.7169972}, {33.1127443, 25.8935163}, {1.13970027, 54.9424981}, |
| 160 {56.4860195, 60.529264}}}, | 160 {56.4860195, 60.529264}}}, |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 const size_t testSetCount = SK_ARRAY_COUNT(testSet); | 163 const size_t testSetCount = SK_ARRAY_COUNT(testSet); |
| 164 | 164 |
| 165 static const SkDCubic newTestSet[] = { | 165 static const SkDCubic newTestSet[] = { |
| 166 {{{134, 11414}, {131.990234375, 11414}, {130.32666015625, 11415.482421875}, {130
.04275512695312, 11417.4130859375}}}, |
| 167 {{{132, 11419}, {130.89543151855469, 11419}, {130, 11418.1044921875}, {130, 1141
7}}}, |
| 168 |
| 166 {{{3, 4}, {1, 5}, {4, 3}, {6, 4}}}, | 169 {{{3, 4}, {1, 5}, {4, 3}, {6, 4}}}, |
| 167 {{{3, 4}, {4, 6}, {4, 3}, {5, 1}}}, | 170 {{{3, 4}, {4, 6}, {4, 3}, {5, 1}}}, |
| 168 | 171 |
| 169 {{{130.04275512695312, 11417.413085937500 }, | 172 {{{130.04275512695312, 11417.413085937500 }, |
| 170 {130.23312377929687, 11418.319335937500 }, | 173 {130.23312377929687, 11418.319335937500 }, |
| 171 {131.03707885742187, 11419.000000000000 }, | 174 {131.03707885742187, 11419.000000000000 }, |
| 172 {132.00000000000000, 11419.000000000000 }}}, | 175 {132.00000000000000, 11419.000000000000 }}}, |
| 173 | 176 |
| 174 {{{132.00000000000000, 11419.000000000000 }, | 177 {{{132.00000000000000, 11419.000000000000 }, |
| 175 {130.89543151855469, 11419.000000000000 }, | 178 {130.89543151855469, 11419.000000000000 }, |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 if (false) CubicIntersection_IntersectionFinder(); | 583 if (false) CubicIntersection_IntersectionFinder(); |
| 581 if (false) CubicIntersection_RandTest(reporter); | 584 if (false) CubicIntersection_RandTest(reporter); |
| 582 } | 585 } |
| 583 | 586 |
| 584 #include "TestClassDef.h" | 587 #include "TestClassDef.h" |
| 585 DEFINE_TESTCLASS_SHORT(PathOpsCubicIntersectionTest) | 588 DEFINE_TESTCLASS_SHORT(PathOpsCubicIntersectionTest) |
| 586 | 589 |
| 587 DEFINE_TESTCLASS_SHORT(PathOpsCubicIntersectionOneOffTest) | 590 DEFINE_TESTCLASS_SHORT(PathOpsCubicIntersectionOneOffTest) |
| 588 | 591 |
| 589 DEFINE_TESTCLASS_SHORT(PathOpsCubicSelfOneOffTest) | 592 DEFINE_TESTCLASS_SHORT(PathOpsCubicSelfOneOffTest) |
| OLD | NEW |