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

Unified Diff: src/effects/SkMergeImageFilter.cpp

Issue 1848953002: Image filters: optimize crop rect application (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update to ToT Created 4 years, 9 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
Index: src/effects/SkMergeImageFilter.cpp
diff --git a/src/effects/SkMergeImageFilter.cpp b/src/effects/SkMergeImageFilter.cpp
index 07b2c1cf3e9ef8de8309144c6c89c72407b8763c..7568dc7dc69134513e5237ddaf2d523cf5dfdea1 100755
--- a/src/effects/SkMergeImageFilter.cpp
+++ b/src/effects/SkMergeImageFilter.cpp
@@ -86,7 +86,7 @@ sk_sp<SkSpecialImage> SkMergeImageFilter::onFilterImage(SkSpecialImage* source,
}
// Apply the crop rect to the union of the inputs' bounds.
robertphillips 2016/04/01 19:58:08 // add a comment about why this is 'false' ?
Stephen White 2016/04/01 21:26:35 Changed it to pass this->affectsTransparentBlack()
- this->getCropRect().applyTo(bounds, ctx.ctm(), &bounds);
+ this->getCropRect().applyTo(bounds, ctx.ctm(), false, &bounds);
if (!bounds.intersect(ctx.clipBounds())) {
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698