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
This commit is contained in:
parent
2080722493
commit
f2f8f3a43c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user