| Index: src/core/SkImageFilter.cpp
|
| diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp
|
| index c431ece9477b88a6a90e03c55002a0a933804319..6456d17a6986df4a062f0ac53d32429d91481d1f 100644
|
| --- a/src/core/SkImageFilter.cpp
|
| +++ b/src/core/SkImageFilter.cpp
|
| @@ -269,18 +269,18 @@ bool SkImageFilter::filterImageGPU(Proxy* proxy, const SkBitmap& src, const Cont
|
| bounds.offset(-srcOffset);
|
| SkMatrix matrix(ctx.ctm());
|
| matrix.postTranslate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top()));
|
| - this->asFragmentProcessor(&fp, srcTexture, matrix, bounds);
|
| - SkASSERT(fp);
|
| - GrPaint paint;
|
| - paint.addColorProcessor(fp)->unref();
|
| - context->drawRectToRect(paint, dstRect, srcRect);
|
| -
|
| - SkAutoTUnref<GrTexture> resultTex(dst.detach());
|
| - WrapTexture(resultTex, bounds.width(), bounds.height(), result);
|
| - return true;
|
| -#else
|
| - return false;
|
| + if (this->asFragmentProcessor(&fp, srcTexture, matrix, bounds)) {
|
| + SkASSERT(fp);
|
| + GrPaint paint;
|
| + paint.addColorProcessor(fp)->unref();
|
| + context->drawRectToRect(paint, dstRect, srcRect);
|
| +
|
| + SkAutoTUnref<GrTexture> resultTex(dst.detach());
|
| + WrapTexture(resultTex, bounds.width(), bounds.height(), result);
|
| + return true;
|
| + }
|
| #endif
|
| + return false;
|
| }
|
|
|
| bool SkImageFilter::applyCropRect(const Context& ctx, const SkBitmap& src,
|
|
|