Index: src/effects/SkGpuBlurUtils.cpp |
diff --git a/src/effects/SkGpuBlurUtils.cpp b/src/effects/SkGpuBlurUtils.cpp |
index f0c10c2871f8197f5c941ab1d5e44a23621681b5..3437ab0d0198b6499d11eb42af9b9b304510a3cd 100644 |
--- a/src/effects/SkGpuBlurUtils.cpp |
+++ b/src/effects/SkGpuBlurUtils.cpp |
@@ -146,7 +146,8 @@ GrTexture* GaussianBlur(GrContext* context, |
const SkRect& rect, |
bool cropToRect, |
float sigmaX, |
- float sigmaY) { |
+ float sigmaY, |
+ GrTextureProvider::SizeConstraint constraint) { |
SkASSERT(context); |
SkIRect clearRect; |
@@ -179,12 +180,12 @@ GrTexture* GaussianBlur(GrContext* context, |
GrTexture* tempTexture; |
SkAutoTUnref<GrTexture> temp1, temp2; |
- temp1.reset(context->textureProvider()->createApproxTexture(desc)); |
+ temp1.reset(context->textureProvider()->createTexture(desc, constraint)); |
dstTexture = temp1.get(); |
if (canClobberSrc) { |
tempTexture = srcTexture; |
} else { |
- temp2.reset(context->textureProvider()->createApproxTexture(desc)); |
+ temp2.reset(context->textureProvider()->createTexture(desc, constraint)); |
tempTexture = temp2.get(); |
} |