Index: tests/CanvasStateTest.cpp |
diff --git a/tests/CanvasStateTest.cpp b/tests/CanvasStateTest.cpp |
index 4f5fb463e3a3461bd0c22bff432d6977c1e92f8f..6e5af3303bebb66ffbfbd951db72ff992484de71 100644 |
--- a/tests/CanvasStateTest.cpp |
+++ b/tests/CanvasStateTest.cpp |
@@ -252,6 +252,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; } |
@@ -277,6 +279,8 @@ DEF_TEST(CanvasState_test_draw_filters, reporter) { |
SkCanvasStateUtils::ReleaseCanvasState(state); |
} |
+#endif |
+ |
//////////////////////////////////////////////////////////////////////////////// |
// we need this function to prevent SkError from printing to stdout |