diff options
| author | 2013-05-28 14:25:09 -0700 | |
|---|---|---|
| committer | 2013-05-28 14:32:01 -0700 | |
| commit | 7d9b1b3c02eb1ffd99742ecb7b69e3ab97d2ba18 (patch) | |
| tree | 56b72ad7a4975043f28a8af8b63d3f4d9f0f630e /libs/hwui/PatchCache.h | |
| parent | 0efd4f0215f1df1207b67240d7a52b1da6af43c8 (diff) | |
Re-initialize the 9patch cache if cleared with onTrimMemory
The 9aptch cache was reinitialized after destroying/recreating
the EGL context but not after clearing it during a normal
memory trim.
Change-Id: If6155bfc8a62439e9878bc742a4766b3bd6c6aec
Diffstat (limited to 'libs/hwui/PatchCache.h')
| -rw-r--r-- | libs/hwui/PatchCache.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/PatchCache.h b/libs/hwui/PatchCache.h index 129a0dcdb34d..530dad05d72c 100644 --- a/libs/hwui/PatchCache.h +++ b/libs/hwui/PatchCache.h @@ -121,9 +121,10 @@ private: uint32_t mMaxSize; uint32_t mSize; - LruCache<PatchDescription, Patch*> mCache; GLuint mMeshBuffer; + + LruCache<PatchDescription, Patch*> mCache; }; // class PatchCache }; // namespace uirenderer |