diff options
author | bsalomon <bsalomon@google.com> | 2016-06-07 06:28:51 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-07 06:28:51 -0700 |
commit | 06115ee4300ef6756729dfbcb3e2fc70ebf0413a (patch) | |
tree | 718cb9b73a783039927b54beb3a381c686b68d39 /tests/GrShapeTest.cpp | |
parent | ee295645bd91fcbe1714847c5fe5341759037cc5 (diff) |
Get segment masks from GrShape.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2046753002
Review-Url: https://codereview.chromium.org/2046753002
Diffstat (limited to 'tests/GrShapeTest.cpp')
-rw-r--r-- | tests/GrShapeTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/GrShapeTest.cpp b/tests/GrShapeTest.cpp index 3f23a1c2ac..f4d3d31b42 100644 --- a/tests/GrShapeTest.cpp +++ b/tests/GrShapeTest.cpp @@ -157,10 +157,13 @@ private: SkPath path; fBase.asPath(&path); REPORTER_ASSERT(r, path.isEmpty() == fBase.isEmpty()); + REPORTER_ASSERT(r, path.getSegmentMasks() == fBase.segmentMask()); fAppliedPE.asPath(&path); REPORTER_ASSERT(r, path.isEmpty() == fAppliedPE.isEmpty()); + REPORTER_ASSERT(r, path.getSegmentMasks() == fAppliedPE.segmentMask()); fAppliedFull.asPath(&path); REPORTER_ASSERT(r, path.isEmpty() == fAppliedFull.isEmpty()); + REPORTER_ASSERT(r, path.getSegmentMasks() == fAppliedFull.segmentMask()); CheckBounds(r, fBase, fBase.bounds()); CheckBounds(r, fAppliedPE, fAppliedPE.bounds()); @@ -283,6 +286,7 @@ void check_equivalence(skiatest::Reporter* r, const GrShape& a, const GrShape& b REPORTER_ASSERT(r, a.isEmpty() == b.isEmpty()); REPORTER_ASSERT(r, a.knownToBeClosed() == b.knownToBeClosed()); REPORTER_ASSERT(r, a.bounds() == b.bounds()); + REPORTER_ASSERT(r, a.segmentMask() == b.segmentMask()); } void TestCase::compare(skiatest::Reporter* r, const TestCase& that, |