| Index: src/core/SkImageFilter.cpp
|
| diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp
|
| index 489a52bf8751363b7313016f92b5cc25dd7dff82..6fd098d2f7d8b42c6a3e32580450c48eb07f3a0c 100644
|
| --- a/src/core/SkImageFilter.cpp
|
| +++ b/src/core/SkImageFilter.cpp
|
| @@ -334,8 +334,6 @@ bool SkImageFilter::filterImageGPU(Proxy* proxy, const SkBitmap& src, const Cont
|
| if (!this->applyCropRect(ctx, proxy, input, &srcOffset, &bounds, &input)) {
|
| return false;
|
| }
|
| - SkRect srcRect = SkRect::Make(bounds);
|
| - SkRect dstRect = SkRect::MakeWH(srcRect.width(), srcRect.height());
|
| GrContext* context = srcTexture->getContext();
|
|
|
| GrSurfaceDesc desc;
|
| @@ -349,9 +347,6 @@ bool SkImageFilter::filterImageGPU(Proxy* proxy, const SkBitmap& src, const Cont
|
| return false;
|
| }
|
|
|
| - // setup new clip
|
| - GrClip clip(dstRect);
|
| -
|
| GrFragmentProcessor* fp;
|
| offset->fX = bounds.left();
|
| offset->fY = bounds.top();
|
| @@ -366,6 +361,9 @@ bool SkImageFilter::filterImageGPU(Proxy* proxy, const SkBitmap& src, const Cont
|
|
|
| SkAutoTUnref<GrDrawContext> drawContext(context->drawContext(dst->asRenderTarget()));
|
| if (drawContext) {
|
| + SkRect srcRect = SkRect::Make(bounds);
|
| + SkRect dstRect = SkRect::MakeWH(srcRect.width(), srcRect.height());
|
| + GrClip clip(dstRect);
|
| drawContext->fillRectToRect(clip, paint, SkMatrix::I(), dstRect, srcRect);
|
|
|
| GrWrapTextureInBitmap(dst, bounds.width(), bounds.height(), false, result);
|
|
|