diff options
| author | 2012-05-14 19:44:40 -0700 | |
|---|---|---|
| committer | 2012-05-14 19:44:40 -0700 | |
| commit | e651cc6239616a202f6e96ebc2ed93b4b8b3627c (patch) | |
| tree | 7aa90f8cccc91555bd652d0a88a898a026cdc333 /libs/hwui/TextureCache.h | |
| parent | 99a6ddd4cd8762654a575eb4ac3d0e5431d919b8 (diff) | |
Remove all Dalvik allocations from Cavnas.drawBitmap(int[], ...)
Change-Id: Ie28538a2104d21154fdc78a56525e7403f08287d
Diffstat (limited to 'libs/hwui/TextureCache.h')
| -rw-r--r-- | libs/hwui/TextureCache.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ -67,6 +67,11 @@ public: */ 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. */ |