diff options
author | Romain Guy <romainguy@google.com> | 2010-11-11 15:36:56 -0800 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2010-11-11 15:36:56 -0800 |
commit | fe48f65922d4a3cc4aefe058cee5acec51504a20 (patch) | |
tree | 97ea23ae71dade1ef7bf783523bea9cda31dd042 /libs/hwui/utils | |
parent | 50c5e4c36e494d092576d42cf2b406abab20510a (diff) | |
download | frameworks_base-fe48f65922d4a3cc4aefe058cee5acec51504a20.zip frameworks_base-fe48f65922d4a3cc4aefe058cee5acec51504a20.tar.gz frameworks_base-fe48f65922d4a3cc4aefe058cee5acec51504a20.tar.bz2 |
Free resources only from the GL context thread.
Bug #3179882
Resources were freed following garbage collections on a worker thread.
This worker thread had no EGL context, which would cause the renderer
to incorrectly assume that the memory was liberated.
Change-Id: Ifdb51f94ddf42641e8654522787bfac532976c7c
Diffstat (limited to 'libs/hwui/utils')
-rw-r--r-- | libs/hwui/utils/GenerationCache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/utils/GenerationCache.h b/libs/hwui/utils/GenerationCache.h index 2e76236..42e6d9b 100644 --- a/libs/hwui/utils/GenerationCache.h +++ b/libs/hwui/utils/GenerationCache.h @@ -130,7 +130,7 @@ K GenerationCache<K, V>::getKeyAt(uint32_t index) const { template<typename K, typename V> V GenerationCache<K, V>::getValueAt(uint32_t index) const { - return mCache.valueAt(index); + return mCache.valueAt(index)->value; } template<typename K, typename V> |