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

Unified Diff: src/image/SkImage.cpp

Issue 1421493003: tunnel down texture-size-constraint to imagefilters (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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
Index: src/image/SkImage.cpp
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp
index 3ad80043da2f49e841e546346efca82a0f712171..b96f7d16aba6ba8855595c38a217df2eb7556dad 100644
--- a/src/image/SkImage.cpp
+++ b/src/image/SkImage.cpp
@@ -116,7 +116,8 @@ SkImage* SkImage_Base::onApplyFilter(SkImageFilter* filter, SkIPoint* offsetResu
if (forceResultToOriginalSize) {
const SkIRect clipBounds = srcBounds;
SkRasterImageFilterProxy proxy;
- SkImageFilter::Context ctx(SkMatrix::I(), clipBounds, SkImageFilter::Cache::Get());
+ SkImageFilter::Context ctx(SkMatrix::I(), clipBounds, SkImageFilter::Cache::Get(),
+ SkImageFilter::kExact_SizeConstraint);
SkBitmap dst;
if (filter->filterImage(&proxy, src, ctx, &dst, offsetResult)) {

Powered by Google App Engine
This is Rietveld 408576698