diff options
author | Ben Wagner <bungeman@google.com> | 2018-06-27 14:46:46 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-12 02:36:44 +0000 |
commit | 2c312c4f58f9c151acab8ca2dd0d39fb77c5e74a (patch) | |
tree | 527d8ef60903f99e54cc83615a051c8b65e046bb /src/core/SkLiteDL.cpp | |
parent | 0859252397e0a771669d21d173a8a20f814b7ca0 (diff) |
Remove SkDrawFilter.
Change-Id: I0204a9522e828c87bb7c6c20ae34ce51161442af
Reviewed-on: https://skia-review.googlesource.com/137895
Reviewed-by: Herb Derby <herb@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'src/core/SkLiteDL.cpp')
-rw-r--r-- | src/core/SkLiteDL.cpp | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/src/core/SkLiteDL.cpp b/src/core/SkLiteDL.cpp index 4240055480..ea3ca6d14b 100644 --- a/src/core/SkLiteDL.cpp +++ b/src/core/SkLiteDL.cpp @@ -7,7 +7,6 @@ #include "SkCanvas.h" #include "SkData.h" -#include "SkDrawFilter.h" #include "SkDrawShadowInfo.h" #include "SkImage.h" #include "SkImageFilter.h" @@ -47,8 +46,8 @@ static const D* pod(const T* op, size_t offset = 0) { } namespace { -#define TYPES(M) \ - M(SetDrawFilter) M(Flush) M(Save) M(Restore) M(SaveLayer) \ +#define TYPES(M) \ + M(Flush) M(Save) M(Restore) M(SaveLayer) \ M(Concat) M(SetMatrix) M(Translate) \ M(ClipPath) M(ClipRect) M(ClipRRect) M(ClipRegion) \ M(DrawPaint) M(DrawPath) M(DrawRect) M(DrawRegion) M(DrawOval) M(DrawArc) \ @@ -68,19 +67,6 @@ namespace { }; static_assert(sizeof(Op) == 4, ""); - struct SetDrawFilter final : Op { -#ifdef SK_SUPPORT_LEGACY_DRAWFILTER - static const auto kType = Type::SetDrawFilter; - SetDrawFilter(SkDrawFilter* df) : drawFilter(sk_ref_sp(df)) {} - sk_sp<SkDrawFilter> drawFilter; -#endif - void draw(SkCanvas* c, const SkMatrix&) const { -#ifdef SK_SUPPORT_LEGACY_DRAWFILTER - c->setDrawFilter(drawFilter.get()); -#endif - } - }; - struct Flush final : Op { static const auto kType = Type::Flush; void draw(SkCanvas* c, const SkMatrix&) const { c->flush(); } @@ -542,12 +528,6 @@ inline void SkLiteDL::map(const Fn fns[], Args... args) const { } } -#ifdef SK_SUPPORT_LEGACY_DRAWFILTER -void SkLiteDL::setDrawFilter(SkDrawFilter* df) { - this->push<SetDrawFilter>(0, df); -} -#endif - void SkLiteDL::flush() { this->push<Flush>(0); } void SkLiteDL:: save() { this->push <Save>(0); } |