Index: src/effects/SkDisplacementMapEffect.cpp |
diff --git a/src/effects/SkDisplacementMapEffect.cpp b/src/effects/SkDisplacementMapEffect.cpp |
index 387877941d362d66ebd9c3c4d9ba61719f63f90f..b3397476abcfe30ca262943620eec070a7db44c1 100644 |
--- a/src/effects/SkDisplacementMapEffect.cpp |
+++ b/src/effects/SkDisplacementMapEffect.cpp |
@@ -420,7 +420,8 @@ bool SkDisplacementMapEffect::filterImageGPU(Proxy* proxy, const SkBitmap& src, |
desc.fHeight = bounds.height(); |
desc.fConfig = kSkia8888_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; |