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

Side by Side Diff: tests/PathOpsBuilderTest.cpp

Issue 1524803002: path ops: check for deleted ends (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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/SkOpCoincidence.cpp ('k') | no next file » | 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 2014 Google Inc. 2 * Copyright 2014 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 7
8 #include "PathOpsExtendedTest.h" 8 #include "PathOpsExtendedTest.h"
9 #include "PathOpsTestCommon.h" 9 #include "PathOpsTestCommon.h"
10 #include "SkBitmap.h" 10 #include "SkBitmap.h"
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 inner.addRect(10, 30, 10+100, 30+60); // <rect x="10" y="30" width=" 100" height="60" /> 263 inner.addRect(10, 30, 10+100, 30+60); // <rect x="10" y="30" width=" 100" height="60" />
264 inner.addRect(757798030.f, 30, 757798030.f+100, 30+60); // <rect x="75779803 0" y="30" width="100" height="60" /> 264 inner.addRect(757798030.f, 30, 757798030.f+100, 30+60); // <rect x="75779803 0" y="30" width="100" height="60" />
265 clipRect.addPath(inner); 265 clipRect.addPath(inner);
266 266
267 SkOpBuilder builder; 267 SkOpBuilder builder;
268 builder.add(clipCircle, kUnion_SkPathOp); 268 builder.add(clipCircle, kUnion_SkPathOp);
269 builder.add(clipRect, kDifference_SkPathOp); 269 builder.add(clipRect, kDifference_SkPathOp);
270 SkPath result; 270 SkPath result;
271 builder.resolve(&result); 271 builder.resolve(&result);
272 } 272 }
273
274 DEF_TEST(Issue569540, reporter) {
275 SkPath path1;
276 path1.moveTo(5, -225);
277 path1.lineTo(-225, 7425);
278 path1.lineTo(7425, 7425);
279 path1.lineTo(7425, -225);
280 path1.lineTo(-225, -225);
281 path1.lineTo(5, -225);
282 path1.close();
283
284 SkPath path2;
285 path2.moveTo(5940, 2790);
286 path2.lineTo(5940, 2160);
287 path2.lineTo(5970, 1980);
288 path2.lineTo(5688, 773669888);
289 path2.lineTo(5688, 2160);
290 path2.lineTo(5688, 2430);
291 path2.lineTo(5400, 4590);
292 path2.lineTo(5220, 4590);
293 path2.lineTo(5220, 4920);
294 path2.cubicTo(5182.22900390625f, 4948.328125f, 5160, 4992.78662109375f, 5160 , 5040.00048828125f);
295 path2.lineTo(5940, 2790);
296 path2.close();
297
298 SkOpBuilder builder;
299 builder.add(path1, kUnion_SkPathOp);
300 builder.add(path2, kUnion_SkPathOp);
301 SkPath result;
302 builder.resolve(&result);
303 }
OLDNEW
« no previous file with comments | « src/pathops/SkOpCoincidence.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698