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 "PathOpsQuadIntersectionTestData.h" | 7 #include "PathOpsQuadIntersectionTestData.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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 tt2, xy2.fX, xy2.fY); | 46 tt2, xy2.fX, xy2.fY); |
47 REPORTER_ASSERT(reporter, 0); | 47 REPORTER_ASSERT(reporter, 0); |
48 } | 48 } |
49 } | 49 } |
50 } | 50 } |
51 } | 51 } |
52 } | 52 } |
53 } | 53 } |
54 | 54 |
55 static const SkDQuad testSet[] = { | 55 static const SkDQuad testSet[] = { |
| 56 {{{441.853149, 308.209106}, {434.672272, 315.389984}, {424.516998, 315.389984}}}
, |
| 57 {{{385.207275, 334.241272}, {406.481598, 312.96698}, {436.567993, 312.96698}}}, |
| 58 |
56 {{{-708.00779269310044, -154.36998607290101}, {-707.90560262312511, -154.3699860
7290101}, {-707.8333433370193, -154.44224536635932}}}, | 59 {{{-708.00779269310044, -154.36998607290101}, {-707.90560262312511, -154.3699860
7290101}, {-707.8333433370193, -154.44224536635932}}}, |
57 {{{-708.00779269310044, -154.61669472244046}, {-701.04513225634582, -128.8597073
4043804}, {505.58447265625, -504.9130859375}}}, | 60 {{{-708.00779269310044, -154.61669472244046}, {-701.04513225634582, -128.8597073
4043804}, {505.58447265625, -504.9130859375}}}, |
58 | 61 |
59 {{{164, -40}, {231.51681518554687, -40}, {279.25839233398438, 7.7416000366210938
}}}, | 62 {{{164, -40}, {231.51681518554687, -40}, {279.25839233398438, 7.7416000366210938
}}}, |
60 {{{279.25839233398438, 7.7416000366210938}, {275.2164306640625, 3.69964003562927
25}, {271.03286743164062, -5.3290705182007514e-015}}}, | 63 {{{279.25839233398438, 7.7416000366210938}, {275.2164306640625, 3.69964003562927
25}, {271.03286743164062, -5.3290705182007514e-015}}}, |
61 | 64 |
62 {{{2.9999997378517067, 1.9737872594345709}, {2.9999997432230918, 1.9739647181863
822}, {1.2414155459263587e-163, 5.2957833941332142e-315}}}, | 65 {{{2.9999997378517067, 1.9737872594345709}, {2.9999997432230918, 1.9739647181863
822}, {1.2414155459263587e-163, 5.2957833941332142e-315}}}, |
63 {{{2.9999047485265304, 1.9739164225694723}, {3.0000947268526112, 1.9738379076623
633}, {0.61149411077591886, 0.0028382324376270418}}}, | 66 {{{2.9999047485265304, 1.9739164225694723}, {3.0000947268526112, 1.9738379076623
633}, {0.61149411077591886, 0.0028382324376270418}}}, |
64 | 67 |
65 {{{2.9999996843656502, 1.9721416019045801}, {2.9999997725237835, 1.974979834
3422071}, | 68 {{{2.9999996843656502, 1.9721416019045801}, {2.9999997725237835, 1.974979834
3422071}, |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 intersectionFinder(0, 1); | 505 intersectionFinder(0, 1); |
503 } | 506 } |
504 | 507 |
505 DEF_TEST(PathOpsQuadIntersection, reporter) { | 508 DEF_TEST(PathOpsQuadIntersection, reporter) { |
506 oneOffTests(reporter); | 509 oneOffTests(reporter); |
507 coincidentTest(reporter); | 510 coincidentTest(reporter); |
508 standardTestCases(reporter); | 511 standardTestCases(reporter); |
509 if (false) QuadraticIntersection_IntersectionFinder(); | 512 if (false) QuadraticIntersection_IntersectionFinder(); |
510 if (false) QuadraticIntersection_PointFinder(); | 513 if (false) QuadraticIntersection_PointFinder(); |
511 } | 514 } |
OLD | NEW |