summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Caches.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2014-12-10 16:47:36 -0800
committerJohn Reck <jreck@google.com>2014-12-10 17:07:41 -0800
commitebd52610cfeff6e557fde284a7e1efc5e6438285 (patch)
tree6e371646828e9074579fe91f869954a67f48e93a /libs/hwui/Caches.cpp
parentfa3f43145ac1af62ed063d3cd7ba1c30a81bb3fd (diff)
downloadframeworks_base-ebd52610cfeff6e557fde284a7e1efc5e6438285.zip
frameworks_base-ebd52610cfeff6e557fde284a7e1efc5e6438285.tar.gz
frameworks_base-ebd52610cfeff6e557fde284a7e1efc5e6438285.tar.bz2
Don't preload textures for AssetAtlas
Bug: 18317479 RenderNode::prepareSubTree calls prefetchAndMarkInUse on every bitmapResoruce in the DisplayList. However, this resulted in textures being uploaded for bitmaps that would be drawn from the AssetAtlas instead. To fix this we teach TextureCache about the AssetAtlas so that calls to TextureCache return the Texture from AssetAtlas if it exists. Thus usage of AssetAtlas is now purely to allow for further optimizations via draw merging instead of a requirement to get any benefit at all. Change-Id: I65282fa05bac46f4e93822b3467ffa0261ccf200
Diffstat (limited to 'libs/hwui/Caches.cpp')
-rw-r--r--libs/hwui/Caches.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/libs/hwui/Caches.cpp b/libs/hwui/Caches.cpp
index 6453206..4bbe6ed 100644
--- a/libs/hwui/Caches.cpp
+++ b/libs/hwui/Caches.cpp
@@ -237,8 +237,6 @@ void Caches::terminate() {
programCache.clear();
currentProgram = NULL;
- assetAtlas.terminate();
-
patchCache.clear();
clearGarbage();