summaryrefslogtreecommitdiffstats
path: root/libs/hwui
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2013-08-16 18:38:29 -0700
committerRomain Guy <romainguy@google.com>2013-08-16 18:38:29 -0700
commit46bfc4811094e5b1e3196246e457d4c6b58332ec (patch)
tree10644c6a2e5dc6714be21a974fb86ce977d5bdf5 /libs/hwui
parentb0a41ed3dcc34a2b4026f6cc8336796f3523aa21 (diff)
downloadframeworks_base-46bfc4811094e5b1e3196246e457d4c6b58332ec.zip
frameworks_base-46bfc4811094e5b1e3196246e457d4c6b58332ec.tar.gz
frameworks_base-46bfc4811094e5b1e3196246e457d4c6b58332ec.tar.bz2
Fix hardware layers lifecycle
Bug #10075732 Hardware layers could survive across EGL terminate events. Change-Id: Ie8565d55cb29fe6625fa1584d695edfecd37ab5e
Diffstat (limited to 'libs/hwui')
-rw-r--r--libs/hwui/Caches.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/hwui/Caches.cpp b/libs/hwui/Caches.cpp
index f9cf9a2..c0b3bfc 100644
--- a/libs/hwui/Caches.cpp
+++ b/libs/hwui/Caches.cpp
@@ -226,6 +226,8 @@ void Caches::terminate() {
patchCache.clear();
+ clearGarbage();
+
mInitialized = false;
}