Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index 6914963cb9e1fc738f71773af60ffb7fc7759849..6dd8d0472136ef1ca0690e5420e8688167b952f4 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -1308,7 +1308,8 @@ void SkCanvas::internalDrawDevice(SkBaseDevice* srcDev, int x, int y, |
matrix.postTranslate(SkIntToScalar(-pos.x()), SkIntToScalar(-pos.y())); |
SkIRect clipBounds = SkIRect::MakeWH(srcDev->width(), srcDev->height()); |
SkAutoTUnref<SkImageFilter::Cache> cache(dstDev->getImageFilterCache()); |
- SkImageFilter::Context ctx(matrix, clipBounds, cache.get()); |
+ SkImageFilter::Context ctx(matrix, clipBounds, cache.get(), |
+ SkImageFilter::kApprox_SizeConstraint); |
if (filter->filterImage(&proxy, src, ctx, &dst, &offset)) { |
SkPaint tmpUnfiltered(*paint); |
tmpUnfiltered.setImageFilter(nullptr); |
@@ -1359,7 +1360,8 @@ void SkCanvas::onDrawSprite(const SkBitmap& bitmap, int x, int y, const SkPaint* |
matrix.postTranslate(SkIntToScalar(-pos.x()), SkIntToScalar(-pos.y())); |
const SkIRect clipBounds = bitmap.bounds(); |
SkAutoTUnref<SkImageFilter::Cache> cache(iter.fDevice->getImageFilterCache()); |
- SkImageFilter::Context ctx(matrix, clipBounds, cache.get()); |
+ SkImageFilter::Context ctx(matrix, clipBounds, cache.get(), |
+ SkImageFilter::kApprox_SizeConstraint); |
if (filter->filterImage(&proxy, bitmap, ctx, &dst, &offset)) { |
SkPaint tmpUnfiltered(*paint); |
tmpUnfiltered.setImageFilter(nullptr); |