aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkGpuBlurUtils.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-10-22 13:20:20 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-10-22 13:20:20 -0700
commitc9b5f8b1522e72449d704d30ed6aee4fc6211ee8 (patch)
tree2076a03c9e01fe3146e64755f54684abd3ea9497 /src/effects/SkGpuBlurUtils.cpp
parent6ae30fbbafe9aa9596922ac96ecaae0278b7be65 (diff)
tunnel down texture-size-constraint to imagefilters
Diffstat (limited to 'src/effects/SkGpuBlurUtils.cpp')
-rw-r--r--src/effects/SkGpuBlurUtils.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/effects/SkGpuBlurUtils.cpp b/src/effects/SkGpuBlurUtils.cpp
index f0c10c2871..3437ab0d01 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();
}