aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/CanvasStateTest.cpp
diff options
context:
space:
mode:
authorGravatar benjaminwagner <benjaminwagner@google.com>2016-01-22 09:45:14 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-22 09:45:14 -0800
commit1c2729c8bbb19ec60a0148e143ae6516faf452d6 (patch)
tree947082d4d1970065119b2ac58d657e034a83a001 /tests/CanvasStateTest.cpp
parentf5b87908cd98aac189070866dc662d69edbb0f71 (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/CanvasStateTest.cpp')
-rw-r--r--tests/CanvasStateTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/CanvasStateTest.cpp b/tests/CanvasStateTest.cpp
index bd7c325ca2..cd7a4184eb 100644
--- a/tests/CanvasStateTest.cpp
+++ b/tests/CanvasStateTest.cpp
@@ -262,6 +262,8 @@ DEF_TEST(CanvasState_test_complex_clips, reporter) {
////////////////////////////////////////////////////////////////////////////////
+#ifdef SK_SUPPORT_LEGACY_DRAWFILTER
+
class TestDrawFilter : public SkDrawFilter {
public:
bool filter(SkPaint*, Type) override { return true; }
@@ -287,6 +289,8 @@ DEF_TEST(CanvasState_test_draw_filters, reporter) {
SkCanvasStateUtils::ReleaseCanvasState(state);
}
+#endif
+
////////////////////////////////////////////////////////////////////////////////
// we need this function to prevent SkError from printing to stdout