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

Side by Side Diff: tests/PathOpsOpTest.cpp

Issue 2168163002: allow curves on side of lines to be very small (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « src/pathops/SkOpAngle.cpp ('k') | tools/pathops_sorter.htm » ('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 9
10 class PathTest_Private { 10 class PathTest_Private {
(...skipping 5330 matching lines...) Expand 10 before | Expand all | Expand 10 after
5341 path.setFillType(SkPath::kWinding_FillType); 5341 path.setFillType(SkPath::kWinding_FillType);
5342 path.moveTo(3, 4); 5342 path.moveTo(3, 4);
5343 path.cubicTo(0, 6, 6, 1, 4, 2); 5343 path.cubicTo(0, 6, 6, 1, 4, 2);
5344 path.close(); 5344 path.close();
5345 pathB.setFillType(SkPath::kWinding_FillType); 5345 pathB.setFillType(SkPath::kWinding_FillType);
5346 pathB.moveTo(1, 6); 5346 pathB.moveTo(1, 6);
5347 pathB.cubicTo(2, 4, 4, 3, 6, 0); 5347 pathB.cubicTo(2, 4, 4, 3, 6, 0);
5348 pathB.close(); 5348 pathB.close();
5349 // DEBUG_UNDER_DEVELOPMENT cubics_d3 disable expectation check for now 5349 // DEBUG_UNDER_DEVELOPMENT cubics_d3 disable expectation check for now
5350 // fails because segment 3 is marked as unorderable ? 5350 // fails because segment 3 is marked as unorderable ?
5351 testPathOpCheck(reporter, path, pathB, kDifference_SkPathOp, filename, !FLAG S_runFail); 5351 testPathOp(reporter, path, pathB, kDifference_SkPathOp, filename);
5352 } 5352 }
5353 5353
5354 static void cubics_o(skiatest::Reporter* reporter, const char* filename) { 5354 static void cubics_o(skiatest::Reporter* reporter, const char* filename) {
5355 SkPath path, pathB; 5355 SkPath path, pathB;
5356 path.setFillType(SkPath::kWinding_FillType); 5356 path.setFillType(SkPath::kWinding_FillType);
5357 path.moveTo(1, 4); 5357 path.moveTo(1, 4);
5358 path.cubicTo(2, 6, 5, 0, 5, 3); 5358 path.cubicTo(2, 6, 5, 0, 5, 3);
5359 path.close(); 5359 path.close();
5360 pathB.setFillType(SkPath::kWinding_FillType); 5360 pathB.setFillType(SkPath::kWinding_FillType);
5361 pathB.moveTo(0, 5); 5361 pathB.moveTo(0, 5);
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after
6542 static struct TestDesc repTests[] = { 6542 static struct TestDesc repTests[] = {
6543 TEST(loops44i), 6543 TEST(loops44i),
6544 TEST(loops45i), 6544 TEST(loops45i),
6545 TEST(loops46i), 6545 TEST(loops46i),
6546 }; 6546 };
6547 6547
6548 DEF_TEST(PathOpsRepOp, reporter) { 6548 DEF_TEST(PathOpsRepOp, reporter) {
6549 for (int index = 0; index < 2; ++index) 6549 for (int index = 0; index < 2; ++index)
6550 RunTestSet(reporter, repTests, SK_ARRAY_COUNT(repTests), nullptr, nullptr, n ullptr, false); 6550 RunTestSet(reporter, repTests, SK_ARRAY_COUNT(repTests), nullptr, nullptr, n ullptr, false);
6551 } 6551 }
OLDNEW
« no previous file with comments | « src/pathops/SkOpAngle.cpp ('k') | tools/pathops_sorter.htm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698