| Index: src/core/SkImageFilter.cpp
|
| diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp
|
| index 56c310d37e525c55114485d0af93d28b0f5babd2..6f7762ac466d68e010caedd3c7b97a350e3b71eb 100644
|
| --- a/src/core/SkImageFilter.cpp
|
| +++ b/src/core/SkImageFilter.cpp
|
| @@ -399,9 +399,8 @@ bool SkImageFilter::getInputResultGPU(SkImageFilter::Proxy* proxy,
|
| if (kUnknown_SkColorType == info.colorType()) {
|
| return false;
|
| }
|
| - GrTexture* resultTex = GrLockAndRefCachedBitmapTexture(context, *result, NULL);
|
| - result->setPixelRef(new SkGrPixelRef(info, resultTex))->unref();
|
| - GrUnlockAndUnrefCachedBitmapTexture(resultTex);
|
| + SkAutoTUnref<GrTexture> resultTex(GrRefCachedBitmapTexture(context, *result, NULL));
|
| + result->setPixelRef(SkNEW_ARGS(SkGrPixelRef, (info, resultTex)))->unref();
|
| }
|
| return true;
|
| } else {
|
|
|