diff options
author | Mike Reed <reed@google.com> | 2017-05-10 14:13:20 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-10 18:56:14 +0000 |
commit | 14113bcc4e55ab6029344a46fb70aa6344587409 (patch) | |
tree | 30585b3821de2ca3a17c526810c6cded9a4c0a62 /tests | |
parent | 6f9f2591c1a6a01f0c0fb06fcd77d1429e3ce260 (diff) |
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 <bsalomon@google.com>
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CanvasTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 } /** |