summaryrefslogtreecommitdiffstats
path: root/libs/hwui
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-06-08 22:51:42 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-08 22:51:43 +0000
commit62043203df362addaf1692657dde1993d88d9b52 (patch)
tree9d6acc99bcdefff1d962bfba5f24055235bf3a01 /libs/hwui
parent623bf636de8f6f53ffa46127ed3fa5477be0a094 (diff)
parent4538ef2abcdf672e12f00bd944a816af35f16ed1 (diff)
downloadframeworks_base-62043203df362addaf1692657dde1993d88d9b52.zip
frameworks_base-62043203df362addaf1692657dde1993d88d9b52.tar.gz
frameworks_base-62043203df362addaf1692657dde1993d88d9b52.tar.bz2
Merge "Delete unused" into mnc-dev
Diffstat (limited to 'libs/hwui')
-rw-r--r--libs/hwui/TextureCache.cpp10
-rw-r--r--libs/hwui/TextureCache.h5
2 files changed, 0 insertions, 15 deletions
diff --git a/libs/hwui/TextureCache.cpp b/libs/hwui/TextureCache.cpp
index e59688c..5147e98 100644
--- a/libs/hwui/TextureCache.cpp
+++ b/libs/hwui/TextureCache.cpp
@@ -215,16 +215,6 @@ Texture* TextureCache::get(const SkBitmap* bitmap) {
return texture;
}
-Texture* TextureCache::getTransient(const SkBitmap* bitmap) {
- Texture* texture = new Texture(Caches::getInstance());
- texture->bitmapSize = bitmap->rowBytes() * bitmap->height();
- texture->cleanup = true;
-
- generateTexture(bitmap, texture, false);
-
- return texture;
-}
-
void TextureCache::releaseTexture(uint32_t pixelRefStableID) {
Mutex::Autolock _l(mLock);
mGarbage.push(pixelRefStableID);
diff --git a/libs/hwui/TextureCache.h b/libs/hwui/TextureCache.h
index a2c6380..e7fc990 100644
--- a/libs/hwui/TextureCache.h
+++ b/libs/hwui/TextureCache.h
@@ -80,11 +80,6 @@ public:
* cannot be found in the cache, a new texture is generated.
*/
Texture* get(const 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(const SkBitmap* bitmap);
/**
* Removes the texture associated with the specified pixelRef. This is meant