aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/imagefiltersgraph.cpp
diff options
context:
space:
mode:
authorGravatar senorblanco <senorblanco@chromium.org>2015-10-15 12:15:13 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-10-15 12:15:13 -0700
commitb9519f86bbce946e505980a4fa950fdc4bcf74ab (patch)
tree68d1ecb2248d0ff2b3a8e31c32731a208a3ce23b /gm/imagefiltersgraph.cpp
parent5f5527fb46664297fbeb575033886a757eb44147 (diff)
Image Filters: refactor all CPU input processing into a filterInput helper function.
No change in behaviour; this is a straight refactoring. BUG=skia:3194 Review URL: https://codereview.chromium.org/1404743005
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;
}