| Index: src/effects/SkDisplacementMapEffect.cpp
|
| diff --git a/src/effects/SkDisplacementMapEffect.cpp b/src/effects/SkDisplacementMapEffect.cpp
|
| index 0463fb08b82dc1ce5b6fa8c70ac1dbc8bac6ce06..a0df111da786f05bb8b5dde547759d4911b3228b 100644
|
| --- a/src/effects/SkDisplacementMapEffect.cpp
|
| +++ b/src/effects/SkDisplacementMapEffect.cpp
|
| @@ -384,7 +384,8 @@ private:
|
| };
|
|
|
| bool SkDisplacementMapEffect::filterImageGPU(Proxy* proxy, const SkBitmap& src, const Context& ctx,
|
| - SkBitmap* result, SkIPoint* offset) const {
|
| + const GrClip& clip, SkBitmap* result,
|
| + SkIPoint* offset) const {
|
| SkBitmap colorBM = src;
|
| SkIPoint colorOffset = SkIPoint::Make(0, 0);
|
| if (getColorInput() && !getColorInput()->getInputResultGPU(proxy, src, ctx, &colorBM,
|
| @@ -449,7 +450,7 @@ bool SkDisplacementMapEffect::filterImageGPU(Proxy* proxy, const SkBitmap& src,
|
| SkMatrix matrix;
|
| matrix.setTranslate(-SkIntToScalar(colorBounds.x()),
|
| -SkIntToScalar(colorBounds.y()));
|
| - context->drawRect(dst->asRenderTarget(), paint, matrix, SkRect::Make(colorBounds));
|
| + context->drawRect(dst->asRenderTarget(), clip, paint, matrix, SkRect::Make(colorBounds));
|
| offset->fX = bounds.left();
|
| offset->fY = bounds.top();
|
| WrapTexture(dst, bounds.width(), bounds.height(), result);
|
|
|