Index: src/gpu/SkGr.cpp |
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp |
index 262d339b6c673763236b66fb8a4e318c7e02fecd..f9952b82351a45f19d9c8647640e3d65bf463789 100644 |
--- a/src/gpu/SkGr.cpp |
+++ b/src/gpu/SkGr.cpp |
@@ -369,9 +369,9 @@ bool GrIsBitmapInCache(const GrContext* ctx, |
return ctx->isTextureInCache(desc, cacheID, params); |
} |
-GrTexture* GrLockAndRefCachedBitmapTexture(GrContext* ctx, |
- const SkBitmap& bitmap, |
- const GrTextureParams* params) { |
+GrTexture* GrRefCachedBitmapTexture(GrContext* ctx, |
+ const SkBitmap& bitmap, |
+ const GrTextureParams* params) { |
GrTexture* result = bitmap.getTexture(); |
if (result) { |
return SkRef(result); |
@@ -400,15 +400,6 @@ GrTexture* GrLockAndRefCachedBitmapTexture(GrContext* ctx, |
return result; |
} |
-void GrUnlockAndUnrefCachedBitmapTexture(GrTexture* texture) { |
- SkASSERT(texture->getContext()); |
- |
- if (texture->getCacheEntry()) { |
- texture->getContext()->unlockScratchTexture(texture); |
- } |
- texture->unref(); |
-} |
- |
/////////////////////////////////////////////////////////////////////////////// |
// alphatype is ignore for now, but if GrPixelConfig is expanded to encompass |