From 14113bcc4e55ab6029344a46fb70aa6344587409 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Wed, 10 May 2017 14:13:20 -0400 Subject: add flag to hide deprecated clipops needs this to land first https://codereview.chromium.org/2877493002/# Bug: skia:3191 Change-Id: Iff5271064877c4e96353d3564464f513eaad0bb5 Reviewed-on: https://skia-review.googlesource.com/16365 Reviewed-by: Brian Salomon Reviewed-by: Hal Canary Commit-Queue: Mike Reed --- tests/CanvasTest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp index b304a0d253..e64f5e95f7 100644 --- a/tests/CanvasTest.cpp +++ b/tests/CanvasTest.cpp @@ -130,6 +130,7 @@ static void test_restriction(skiatest::Reporter* reporter, SkCanvas* canvas) { canvas->clipRect(SkRect::Make(clipR), SkClipOp::kIntersect); REPORTER_ASSERT(reporter, canvas->getDeviceClipBounds() == clipR); +#ifdef SK_SUPPORT_DEPRECATED_CLIPOPS // now test that expanding clipops can't exceed the restriction const SkClipOp expanders[] = { SkClipOp::kUnion_deprecated, @@ -147,6 +148,7 @@ static void test_restriction(skiatest::Reporter* reporter, SkCanvas* canvas) { REPORTER_ASSERT(reporter, gBaseRestrictedR.contains(canvas->getDeviceClipBounds())); canvas->restore(); } +#endif } /** -- cgit v1.2.3