diff options
| author | 2022-08-30 14:24:22 -0400 | |
|---|---|---|
| committer | 2022-09-27 22:50:45 +0000 | |
| commit | 289380ff2b807e079724021294fcc783ed8ed46a (patch) | |
| tree | 103636740fce6577bc555147b7b7b8b22c0a1c42 /libs/androidfw/StringPool.cpp | |
| parent | 6ab473af0069e542a5cc8153ac604e282e254b58 (diff) | |
Fix crash where trim memory resulted in HWUI deleting the surface.
When HWUI is given the TRIM_MEMORY_COMPLETE signal it deletes all
of the associated GPU resources. In doing so it also deleted the
GL/Vk handle to the the ANativeWindow. So if the app attempted to
recover and draw new content it would crash because we no longer
had a surface to reinitialize and render into.
Test: atest hwui_unit_tests
Bug: 233388563
Change-Id: I54f3f0dadc3dfc89d2b1f567d36611f6a966c4f0
(cherry picked from commit b830772f7861207924b2a255a6ab9178befa664f)
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions