diff options
author | 2016-01-22 09:45:14 -0800 | |
---|---|---|
committer | 2016-01-22 09:45:14 -0800 | |
commit | 1c2729c8bbb19ec60a0148e143ae6516faf452d6 (patch) | |
tree | 947082d4d1970065119b2ac58d657e034a83a001 /gm | |
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 'gm')
-rw-r--r-- | gm/drawfilter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gm/drawfilter.cpp b/gm/drawfilter.cpp index cd1bbb0c16..d17eb4f52f 100644 --- a/gm/drawfilter.cpp +++ b/gm/drawfilter.cpp @@ -12,6 +12,8 @@ #include "SkDrawFilter.h" #include "SkPaint.h" +#ifdef SK_SUPPORT_LEGACY_DRAWFILTER + /** * Initial test coverage for SkDrawFilter. * Draws two rectangles; if draw filters are broken, they will match. @@ -70,3 +72,4 @@ private: DEF_GM( return new DrawFilterGM; ) +#endif |