diff options
author | caryclark <caryclark@google.com> | 2015-04-20 08:31:59 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-20 08:31:59 -0700 |
commit | 1049f1246e7be4ccb68001361efceb8933e6f81c (patch) | |
tree | 9c71ceb245856cbe2173913eaec3b0ebb490dd74 /tests/PathOpsBoundsTest.cpp | |
parent | 5c476fb2776639bdbf0e974dd38d1c5d4c4ff1aa (diff) |
Now, path ops natively intersect conics, quads, and cubics in any combination. There are still a class of cubic tests that fail and a handful of undiagnosed failures from skps and fuzz tests, but things are much better overall.
Extended tests (150M+) run to completion in release in about 6 minutes; the standard test suite exceeds 100K and finishes in a few seconds on desktops.
TBR=reed
BUG=skia:3588
Review URL: https://codereview.chromium.org/1037953004
Diffstat (limited to 'tests/PathOpsBoundsTest.cpp')
-rw-r--r-- | tests/PathOpsBoundsTest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/PathOpsBoundsTest.cpp b/tests/PathOpsBoundsTest.cpp index 8683051b05..1160ae66c1 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); } |