aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/imagefiltersgraph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/imagefiltersgraph.cpp')
-rw-r--r--gm/imagefiltersgraph.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/gm/imagefiltersgraph.cpp b/gm/imagefiltersgraph.cpp
index 3ef2a1e589..e27a523cbc 100644
--- a/gm/imagefiltersgraph.cpp
+++ b/gm/imagefiltersgraph.cpp
@@ -41,9 +41,8 @@ public:
virtual bool onFilterImage(Proxy* proxy, const SkBitmap& src, const Context& ctx,
SkBitmap* dst, SkIPoint* offset) const override {
SkBitmap source = src;
- SkImageFilter* input = getInput(0);
SkIPoint srcOffset = SkIPoint::Make(0, 0);
- if (input && !input->filterImage(proxy, src, ctx, &source, &srcOffset)) {
+ if (!this->filterInput(0, proxy, src, ctx, &source, &srcOffset)) {
return false;
}