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