| Index: src/effects/SkDisplacementMapEffect.cpp
|
| diff --git a/src/effects/SkDisplacementMapEffect.cpp b/src/effects/SkDisplacementMapEffect.cpp
|
| index 0200cabff85bf942a1b6d697d2e0370fd2672c6d..4b26a5f846083f55de3e6707fcc9adf700ed9e7f 100644
|
| --- a/src/effects/SkDisplacementMapEffect.cpp
|
| +++ b/src/effects/SkDisplacementMapEffect.cpp
|
| @@ -384,8 +384,8 @@
|
|
|
| GrTextureDesc desc;
|
| desc.fFlags = kRenderTarget_GrTextureFlagBit | kNoStencil_GrTextureFlagBit;
|
| - desc.fWidth = bounds.width();
|
| - desc.fHeight = bounds.height();
|
| + desc.fWidth = colorBM.width();
|
| + desc.fHeight = colorBM.height();
|
| desc.fConfig = kSkia8888_GrPixelConfig;
|
|
|
| GrAutoScratchTexture ast(context, desc);
|
| @@ -410,8 +410,6 @@
|
| color))->unref();
|
| SkIRect colorBounds = bounds;
|
| colorBounds.offset(-colorOffset);
|
| - GrContext::AutoMatrix am;
|
| - am.setIdentity(context);
|
| SkMatrix matrix;
|
| matrix.setTranslate(-SkIntToScalar(colorBounds.x()),
|
| -SkIntToScalar(colorBounds.y()));
|
|
|