diff options
author | 2014-10-07 15:07:38 -0400 | |
---|---|---|
committer | 2014-10-07 15:07:38 -0400 | |
commit | 9323b8b8e16df4adcd63ee8496a6382e8df535c9 (patch) | |
tree | 12ff0bd9f07193593b7db1d52ef2fe0478c00aeb /gm/texturedomaineffect.cpp | |
parent | 65be97d1a1eb5923b078bd1e7ec1e7da6e6427e2 (diff) |
Revert "GrResourceCache2 manages scratch texture."
This reverts commit d14e1a27643125bfef37fa0ed314b64c1fae22b7.
Diffstat (limited to 'gm/texturedomaineffect.cpp')
-rw-r--r-- | gm/texturedomaineffect.cpp | 5 |
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: |