aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/texturedomaineffect.cpp
diff options
context:
space:
mode:
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: