diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-01 11:55:06 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-01 11:55:06 +0000 |
commit | f2f8f3a43c5d7c7bd66afc6d9097ad5968df1596 (patch) | |
tree | 15cc6f3b0f1998690ffa3479ce00a15e6e38a835 | |
parent | 20807224936f8040424022a6bd6442b94b333d7f (diff) |
Adding a way to disable SkOffsetImageFilter's optimized path in blink/chrome
BUG=
R=senorblanco@chromium.org, reed@google.com, sugoi@google.com
Author: sugoi@chromium.org
Review URL: https://codereview.chromium.org/54543005
git-svn-id: http://skia.googlecode.com/svn/trunk@12075 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | src/effects/SkOffsetImageFilter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/effects/SkOffsetImageFilter.cpp b/src/effects/SkOffsetImageFilter.cpp index fc8e71c1d9..ecaf5e6b62 100644 --- a/src/effects/SkOffsetImageFilter.cpp +++ b/src/effects/SkOffsetImageFilter.cpp @@ -19,7 +19,11 @@ bool SkOffsetImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& source, SkIPoint* loc) { SkImageFilter* input = getInput(0); SkBitmap src = source; +#ifdef SK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION + if (false) { +#else if (!cropRectIsSet()) { +#endif if (input && !input->filterImage(proxy, source, matrix, &src, loc)) { return false; } |