From e651cc6239616a202f6e96ebc2ed93b4b8b3627c Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Mon, 14 May 2012 19:44:40 -0700 Subject: Remove all Dalvik allocations from Cavnas.drawBitmap(int[], ...) Change-Id: Ie28538a2104d21154fdc78a56525e7403f08287d --- libs/hwui/TextureCache.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libs/hwui/TextureCache.h') diff --git a/libs/hwui/TextureCache.h b/libs/hwui/TextureCache.h index 10a05e0b54c2..31a2e3d7e81f 100644 --- a/libs/hwui/TextureCache.h +++ b/libs/hwui/TextureCache.h @@ -66,6 +66,11 @@ public: * cannot be found in the cache, a new texture is generated. */ Texture* get(SkBitmap* bitmap); + /** + * Returns the texture associated with the specified bitmap. The generated + * texture is not kept in the cache. The caller must destroy the texture. + */ + Texture* getTransient(SkBitmap* bitmap); /** * Removes the texture associated with the specified bitmap. * Upon remove the texture is freed. -- cgit v1.2.3-59-g8ed1b