aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/texturedomaineffect.cpp
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2014-10-07 15:07:38 -0400
committerGravatar Brian Salomon <bsalomon@google.com>2014-10-07 15:07:38 -0400
commit9323b8b8e16df4adcd63ee8496a6382e8df535c9 (patch)
tree12ff0bd9f07193593b7db1d52ef2fe0478c00aeb /gm/texturedomaineffect.cpp
parent65be97d1a1eb5923b078bd1e7ec1e7da6e6427e2 (diff)
Revert "GrResourceCache2 manages scratch texture."
Diffstat (limited to 'gm/texturedomaineffect.cpp')
-rw-r--r--gm/texturedomaineffect.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gm/texturedomaineffect.cpp b/gm/texturedomaineffect.cpp
index acf039513d..6534b0c1dd 100644
--- a/gm/texturedomaineffect.cpp
+++ b/gm/texturedomaineffect.cpp
@@ -92,8 +92,8 @@ protected:
GrDrawState* drawState = tt.target()->drawState();
- SkAutoTUnref<GrTexture> texture(GrRefCachedBitmapTexture(context, fBmp, NULL));
- if (!texture) {
+ GrTexture* texture = GrLockAndRefCachedBitmapTexture(context, fBmp, NULL);
+ if (NULL == texture) {
return;
}
@@ -144,6 +144,7 @@ protected:
y += renderRect.height() + kTestPad;
}
}
+ GrUnlockAndUnrefCachedBitmapTexture(texture);
}
private: