Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index fceacfc913249e574742407ef497e4592f3685fc..c4181c25cf65f02d08bb5b2543055c221b717dbb 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -682,7 +682,8 @@ void SkGpuDevice::drawPath(const SkDraw& draw, const SkPath& origSrcPath, |
GrBlurUtils::drawPathWithMaskFilter(fContext, fDrawContext, fRenderTarget, |
fClip, origSrcPath, paint, |
*draw.fMatrix, prePathMatrix, |
- draw.fClip->getBounds(), pathIsMutable); |
+ draw.fClip->getBounds(), pathIsMutable, |
+ GrTextureProvider::kApprox_SizeConstraint); |
} |
static const int kBmpSmallTileSize = 1 << 10; |
@@ -1433,7 +1434,7 @@ void SkGpuDevice::drawSprite(const SkDraw& draw, const SkBitmap& bitmap, |
SkAutoTUnref<SkImageFilter::Cache> cache(getImageFilterCache()); |
// This cache is transient, and is freed (along with all its contained |
// textures) when it goes out of scope. |
- SkImageFilter::Context ctx(matrix, clipBounds, cache); |
+ SkImageFilter::Context ctx(matrix, clipBounds, cache, SkImageFilter::kApprox_SizeConstraint); |
if (this->filterTexture(fContext, texture, w, h, filter, ctx, &filteredBitmap, |
&offset)) { |
texture = (GrTexture*) filteredBitmap.getTexture(); |
@@ -1553,7 +1554,7 @@ void SkGpuDevice::drawDevice(const SkDraw& draw, SkBaseDevice* device, |
// This cache is transient, and is freed (along with all its contained |
// textures) when it goes out of scope. |
SkAutoTUnref<SkImageFilter::Cache> cache(getImageFilterCache()); |
- SkImageFilter::Context ctx(matrix, clipBounds, cache); |
+ SkImageFilter::Context ctx(matrix, clipBounds, cache, SkImageFilter::kApprox_SizeConstraint); |
if (this->filterTexture(fContext, devTex, device->width(), device->height(), |
filter, ctx, &filteredBitmap, &offset)) { |
devTex = filteredBitmap.getTexture(); |