diff options
author | benjaminwagner <benjaminwagner@google.com> | 2016-01-22 09:45:14 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-22 09:45:14 -0800 |
commit | 1c2729c8bbb19ec60a0148e143ae6516faf452d6 (patch) | |
tree | 947082d4d1970065119b2ac58d657e034a83a001 /tests/CanvasTest.cpp | |
parent | f5b87908cd98aac189070866dc662d69edbb0f71 (diff) |
Add SK_SUPPORT_LEGACY_DRAWFILTER guard around calls to SkCanvas::(get|set)DrawFilter.
Fixes Google3 dm build. (Can't enable SK_INTERNAL for Google3 dm without enabling it for all dependents.)
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1626543002
Review URL: https://codereview.chromium.org/1626543002
Diffstat (limited to 'tests/CanvasTest.cpp')
-rw-r--r-- | tests/CanvasTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp index 774e85d242..2390c7455f 100644 --- a/tests/CanvasTest.cpp +++ b/tests/CanvasTest.cpp @@ -515,8 +515,11 @@ static void AssertCanvasStatesEqual(skiatest::Reporter* reporter, const TestData REPORTER_ASSERT_MESSAGE(reporter, bounds1 == bounds2, testStep->assertMessage()); +#ifdef SK_SUPPORT_LEGACY_DRAWFILTER REPORTER_ASSERT_MESSAGE(reporter, canvas1->getDrawFilter() == canvas2->getDrawFilter(), testStep->assertMessage()); +#endif + SkIRect deviceBounds1, deviceBounds2; REPORTER_ASSERT_MESSAGE(reporter, canvas1->getClipDeviceBounds(&deviceBounds1) == |