Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(826)

Side by Side Diff: tests/PathOpsQuadIntersectionTest.cpp

Issue 2440043003: nc seal breaks simplify (Closed)
Patch Set: fix nc state seal Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pathops/SkPathOpsTSect.h ('k') | tests/PathOpsSimplifyTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 tt2, xy2.fX, xy2.fY); 50 tt2, xy2.fX, xy2.fY);
51 REPORTER_ASSERT(reporter, 0); 51 REPORTER_ASSERT(reporter, 0);
52 } 52 }
53 } 53 }
54 } 54 }
55 } 55 }
56 } 56 }
57 } 57 }
58 58
59 static const QuadPts testSet[] = { 59 static const QuadPts testSet[] = {
60 {{{123.637985f, 102.405312f}, {125.172699f, 104.575714f}, {123.387383f, 106.9122 7f}}},
61 {{{123.388428f, 106.910896f}, {123.365623f, 106.94088f}, {123.320007f, 107.00094 6f}}},
62
60 {{{-0.001019871095195412636, -0.008523519150912761688}, {-0.00539640802890062332 2, -0.005396373569965362549}, {-0.02855382487177848816, -0.02855364233255386353} }}, 63 {{{-0.001019871095195412636, -0.008523519150912761688}, {-0.00539640802890062332 2, -0.005396373569965362549}, {-0.02855382487177848816, -0.02855364233255386353} }},
61 {{{-0.004567248281091451645, -0.01482933573424816132}, {-0.01142475008964538574, -0.01140109263360500336}, {-0.02852955088019371033, -0.02847047336399555206}}}, 64 {{{-0.004567248281091451645, -0.01482933573424816132}, {-0.01142475008964538574, -0.01140109263360500336}, {-0.02852955088019371033, -0.02847047336399555206}}},
62 65
63 {{{1, 1}, {0, 2}, {3, 3}}}, 66 {{{1, 1}, {0, 2}, {3, 3}}},
64 {{{3, 0}, {0, 1}, {1, 2}}}, 67 {{{3, 0}, {0, 1}, {1, 2}}},
65 68
66 {{{0.33333333333333326, 0.81481481481481488}, {0.63395173631977997, 0.6874413672 6313931}, {1.205684411948591, 0.81344322326274499}}}, 69 {{{0.33333333333333326, 0.81481481481481488}, {0.63395173631977997, 0.6874413672 6313931}, {1.205684411948591, 0.81344322326274499}}},
67 {{{0.33333333333333326, 0.81481481481481488}, {0.63396444791444551, 0.6874336836 2444768}, {1.205732763658403, 0.81345617746834109}}}, 70 {{{0.33333333333333326, 0.81481481481481488}, {0.63396444791444551, 0.6874336836 2444768}, {1.205732763658403, 0.81345617746834109}}},
68 71
69 {{{4981.9990234375, 1590}, {4981.9990234375, 1617.7523193359375}, {4962.375, 163 7.3760986328125}}}, 72 {{{4981.9990234375, 1590}, {4981.9990234375, 1617.7523193359375}, {4962.375, 163 7.3760986328125}}},
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 const QuadPts& q1 = quadraticTests[test][0]; 555 const QuadPts& q1 = quadraticTests[test][0];
553 const QuadPts& q2 = quadraticTests[test][1]; 556 const QuadPts& q2 = quadraticTests[test][1];
554 SkDQuad quad1, quad2; 557 SkDQuad quad1, quad2;
555 quad1.debugSet(q1.fPts); 558 quad1.debugSet(q1.fPts);
556 quad2.debugSet(q2.fPts); 559 quad2.debugSet(q2.fPts);
557 (void) intersections.intersect(quad1, quad2); 560 (void) intersections.intersect(quad1, quad2);
558 REPORTER_ASSERT(reporter, intersections.used() >= 0); // make sure code isn't tossed 561 REPORTER_ASSERT(reporter, intersections.used() >= 0); // make sure code isn't tossed
559 } 562 }
560 } 563 }
561 } 564 }
OLDNEW
« no previous file with comments | « src/pathops/SkPathOpsTSect.h ('k') | tests/PathOpsSimplifyTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698