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

Side by Side Diff: tests/PathOpsQuadLineIntersectionTest.cpp

Issue 21359002: path ops work in progress (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: remove space Created 7 years, 3 months 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/PathOpsSimplifyFailTest.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 "PathOpsExtendedTest.h" 7 #include "PathOpsExtendedTest.h"
8 #include "PathOpsTestCommon.h" 8 #include "PathOpsTestCommon.h"
9 #include "SkIntersections.h" 9 #include "SkIntersections.h"
10 #include "SkPathOpsLine.h" 10 #include "SkPathOpsLine.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 intersections.intersect(quad, line); 52 intersections.intersect(quad, line);
53 result = intersections.used(); 53 result = intersections.used();
54 } 54 }
55 return result; 55 return result;
56 } 56 }
57 57
58 static struct oneLineQuad { 58 static struct oneLineQuad {
59 SkDQuad quad; 59 SkDQuad quad;
60 SkDLine line; 60 SkDLine line;
61 } oneOffs[] = { 61 } oneOffs[] = {
62 {{{{142.589081, 102.283646}, {149.821579, 100}, {158, 100}}},
63 {{{90, 230}, {160, 60}}}},
62 {{{{1101, 10}, {1101, 8.3431453704833984}, {1099.828857421875, 7.17119979858 39844}}}, 64 {{{{1101, 10}, {1101, 8.3431453704833984}, {1099.828857421875, 7.17119979858 39844}}},
63 {{{1099.828857421875,7.1711711883544922}, {1099.121337890625,7.878678321 8383789}}}}, 65 {{{1099.828857421875,7.1711711883544922}, {1099.121337890625,7.878678321 8383789}}}},
64 {{{{973, 507}, {973, 508.24264526367187}, {972.12158203125, 509.121612548828 12}}}, 66 {{{{973, 507}, {973, 508.24264526367187}, {972.12158203125, 509.121612548828 12}}},
65 {{{930, 467}, {973, 510}}}}, 67 {{{930, 467}, {973, 510}}}},
66 {{{{369.848602, 145.680267}, {382.360413, 121.298294}, {406.207703, 121.2982 94}}}, 68 {{{{369.848602, 145.680267}, {382.360413, 121.298294}, {406.207703, 121.2982 94}}},
67 {{{406.207703, 121.298294}, {348.781738, 123.864815}}}}, 69 {{{406.207703, 121.298294}, {348.781738, 123.864815}}}},
68 }; 70 };
69 71
70 static size_t oneOffs_count = SK_ARRAY_COUNT(oneOffs); 72 static size_t oneOffs_count = SK_ARRAY_COUNT(oneOffs);
71 73
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 REPORTER_ASSERT(reporter, 0); 138 REPORTER_ASSERT(reporter, 0);
137 } 139 }
138 } 140 }
139 } 141 }
140 } 142 }
141 143
142 #include "TestClassDef.h" 144 #include "TestClassDef.h"
143 DEFINE_TESTCLASS_SHORT(PathOpsQuadLineIntersectionTest) 145 DEFINE_TESTCLASS_SHORT(PathOpsQuadLineIntersectionTest)
144 146
145 DEFINE_TESTCLASS_SHORT(PathOpsQuadLineIntersectionTestOne) 147 DEFINE_TESTCLASS_SHORT(PathOpsQuadLineIntersectionTestOne)
OLDNEW
« no previous file with comments | « tests/PathOpsOpTest.cpp ('k') | tests/PathOpsSimplifyFailTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698