Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Unified Diff: src/effects/SkOffsetImageFilter.cpp

Issue 54543005: Adding a way to disable SkOffsetImageFilter's optimized path in blink/chrome (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkOffsetImageFilter.cpp
diff --git a/src/effects/SkOffsetImageFilter.cpp b/src/effects/SkOffsetImageFilter.cpp
index fc8e71c1d9c4c9faba4fe0ca72f9572c725d47f9..ecaf5e6b622ed1954d44cdcfb9ea4504f395934b 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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698