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

Side by Side Diff: tests/PathOpsQuadIntersectionTest.cpp

Issue 52653002: pathops work in progress (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add raster vs gpu test Created 7 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 | Annotate | Revision Log
« no previous file with comments | « tests/PathOpsOpTest.cpp ('k') | tests/PathOpsQuadLineIntersectionTest.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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 {{{164, -40}, {231.51681518554687, -40}, {279.25839233398438, 7.7416000366210938 }}},
57 {{{279.25839233398438, 7.7416000366210938}, {275.2164306640625, 3.69964003562927 25}, {271.03286743164062, -5.3290705182007514e-015}}},
58
56 {{{2.9999997378517067, 1.9737872594345709}, {2.9999997432230918, 1.9739647181863 822}, {1.2414155459263587e-163, 5.2957833941332142e-315}}}, 59 {{{2.9999997378517067, 1.9737872594345709}, {2.9999997432230918, 1.9739647181863 822}, {1.2414155459263587e-163, 5.2957833941332142e-315}}},
57 {{{2.9999047485265304, 1.9739164225694723}, {3.0000947268526112, 1.9738379076623 633}, {0.61149411077591886, 0.0028382324376270418}}}, 60 {{{2.9999047485265304, 1.9739164225694723}, {3.0000947268526112, 1.9738379076623 633}, {0.61149411077591886, 0.0028382324376270418}}},
58 61
59 {{{2.9999996843656502, 1.9721416019045801}, {2.9999997725237835, 1.974979834 3422071}, 62 {{{2.9999996843656502, 1.9721416019045801}, {2.9999997725237835, 1.974979834 3422071},
60 {5.3039068214821359e-315, 8.9546185262775165e-307}}}, 63 {5.3039068214821359e-315, 8.9546185262775165e-307}}},
61 {{{2.9984791443874976, 1.974505741312242}, {2.9999992702127476, 1.9738772171 479178}, 64 {{{2.9984791443874976, 1.974505741312242}, {2.9999992702127476, 1.9738772171 479178},
62 {3.0015187977319759, 1.9732495027303418}}}, 65 {3.0015187977319759, 1.9732495027303418}}},
63 66
64 {{{0.647069409,2.97691634}, {0.946860918,3.17625612}, {1.46875407,2.65105457 }}}, 67 {{{0.647069409,2.97691634}, {0.946860918,3.17625612}, {1.46875407,2.65105457 }}},
65 {{{0,1}, {0.723699095,2.82756208}, {1.08907197,2.97497449}}}, 68 {{{0,1}, {0.723699095,2.82756208}, {1.08907197,2.97497449}}},
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 if (false) QuadraticIntersection_PointFinder(); 507 if (false) QuadraticIntersection_PointFinder();
505 } 508 }
506 509
507 510
508 #include "TestClassDef.h" 511 #include "TestClassDef.h"
509 DEFINE_TESTCLASS_SHORT(PathOpsQuadIntersectionTest) 512 DEFINE_TESTCLASS_SHORT(PathOpsQuadIntersectionTest)
510 513
511 DEFINE_TESTCLASS_SHORT(PathOpsQuadIntersectionOneOffTest) 514 DEFINE_TESTCLASS_SHORT(PathOpsQuadIntersectionOneOffTest)
512 515
513 DEFINE_TESTCLASS_SHORT(PathOpsQuadIntersectionCoincidenceOneOffTest) 516 DEFINE_TESTCLASS_SHORT(PathOpsQuadIntersectionCoincidenceOneOffTest)
OLDNEW
« no previous file with comments | « tests/PathOpsOpTest.cpp ('k') | tests/PathOpsQuadLineIntersectionTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698