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

Unified Diff: tests/PathOpsBoundsTest.cpp

Issue 1037953004: add conics to path ops (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: turn off pathops specific debuggging Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/PathOpsAngleTest.cpp ('k') | tests/PathOpsConicIntersectionTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PathOpsBoundsTest.cpp
diff --git a/tests/PathOpsBoundsTest.cpp b/tests/PathOpsBoundsTest.cpp
index 8683051b056549008a29dda60036efd7e63679b9..1160ae66c1985a88b00a642566e5c0d639727663 100644
--- a/tests/PathOpsBoundsTest.cpp
+++ b/tests/PathOpsBoundsTest.cpp
@@ -92,19 +92,19 @@ DEF_TEST(PathOpsBounds, reporter) {
REPORTER_ASSERT(reporter, !empty);
}
const SkPoint curvePts[] = {{0, 0}, {1, 2}, {3, 4}, {5, 6}};
- bounds.setLineBounds(curvePts);
+ bounds.setLineBounds(curvePts, 1);
expected.set(0, 0, 1, 2);
REPORTER_ASSERT(reporter, bounds == expected);
- (bounds.*SetCurveBounds[1])(curvePts);
+ (bounds.*SetCurveBounds[SkPath::kLine_Verb])(curvePts, 1);
REPORTER_ASSERT(reporter, bounds == expected);
- bounds.setQuadBounds(curvePts);
+ bounds.setQuadBounds(curvePts, 1);
expected.set(0, 0, 3, 4);
REPORTER_ASSERT(reporter, bounds == expected);
- (bounds.*SetCurveBounds[2])(curvePts);
+ (bounds.*SetCurveBounds[SkPath::kQuad_Verb])(curvePts, 1);
REPORTER_ASSERT(reporter, bounds == expected);
- bounds.setCubicBounds(curvePts);
+ bounds.setCubicBounds(curvePts, 1);
expected.set(0, 0, 5, 6);
REPORTER_ASSERT(reporter, bounds == expected);
- (bounds.*SetCurveBounds[3])(curvePts);
+ (bounds.*SetCurveBounds[SkPath::kCubic_Verb])(curvePts, 1);
REPORTER_ASSERT(reporter, bounds == expected);
}
« no previous file with comments | « tests/PathOpsAngleTest.cpp ('k') | tests/PathOpsConicIntersectionTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698