aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/CanvasStateTest.cpp
diff options
context:
space:
mode:
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