| Index: src/effects/SkDisplacementMapEffect.cpp
|
| diff --git a/src/effects/SkDisplacementMapEffect.cpp b/src/effects/SkDisplacementMapEffect.cpp
|
| index 17f96df75080cd194fd1b717b965df1807b6bc88..ca11c38cace3f9e0b2ff177da6c36b7365c75b9e 100644
|
| --- a/src/effects/SkDisplacementMapEffect.cpp
|
| +++ b/src/effects/SkDisplacementMapEffect.cpp
|
| @@ -449,13 +449,12 @@ bool SkDisplacementMapEffect::filterImageGPU(Proxy* proxy, const SkBitmap& src,
|
| matrix.setTranslate(-SkIntToScalar(colorBounds.x()),
|
| -SkIntToScalar(colorBounds.y()));
|
|
|
| - SkAutoTUnref<GrDrawContext> drawContext(context->drawContext());
|
| + SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(dst->asRenderTarget()));
|
| if (!drawContext) {
|
| return false;
|
| }
|
|
|
| - drawContext->drawRect(dst->asRenderTarget(), GrClip::WideOpen(), paint, matrix,
|
| - SkRect::Make(colorBounds));
|
| + drawContext->drawRect(GrClip::WideOpen(), paint, matrix, SkRect::Make(colorBounds));
|
| offset->fX = bounds.left();
|
| offset->fY = bounds.top();
|
| WrapTexture(dst, bounds.width(), bounds.height(), result);
|
|
|