aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkLightingImageFilter.cpp
diff options
context:
space:
mode:
authorGravatar senorblanco <senorblanco@chromium.org>2015-10-23 09:56:48 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-10-23 09:56:48 -0700
commit51eedb6e7db0de1d81128b727bfb9df60d77aa98 (patch)
tree07c3d6b41333e20b503908fcf506986e4d2f7c15 /src/effects/SkLightingImageFilter.cpp
parentb83bec5e0427be6fbe2a8f9802a5a031de91e11a (diff)
Fix some GPU filters to use the correct size constraint.
Diffstat (limited to 'src/effects/SkLightingImageFilter.cpp')
-rw-r--r--src/effects/SkLightingImageFilter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp
index 1dca0fcab4..615d269ce6 100644
--- a/src/effects/SkLightingImageFilter.cpp
+++ b/src/effects/SkLightingImageFilter.cpp
@@ -380,7 +380,8 @@ bool SkLightingImageFilterInternal::filterImageGPU(Proxy* proxy,
desc.fHeight = bounds.height();
desc.fConfig = kRGBA_8888_GrPixelConfig;
- SkAutoTUnref<GrTexture> dst(context->textureProvider()->createApproxTexture(desc));
+ auto constraint = GrTextureProvider::FromImageFilter(ctx.sizeConstraint());
+ SkAutoTUnref<GrTexture> dst(context->textureProvider()->createTexture(desc, constraint));
if (!dst) {
return false;
}