commit | b830772f7861207924b2a255a6ab9178befa664f | [log] [tgz] |
---|---|---|
author | Derek Sollenberger <[email protected]> | Tue Aug 30 14:24:22 2022 -0400 |
committer | Derek Sollenberger <[email protected]> | Wed Aug 31 15:39:23 2022 -0400 |
tree | b932eb5ee1fad78b2ee6834dc53a3303a11a2a81 | |
parent | b61d0153b92eedeec23b767cf6a6e04f2ae4f8cc [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