summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2022-08-30 14:24:22 -0400
committerSumir Kataria <sumir@google.com>2022-09-27 22:50:45 +0000
commit289380ff2b807e079724021294fcc783ed8ed46a (patch)
tree103636740fce6577bc555147b7b7b8b22c0a1c42 /core/java/android/inputmethodservice/InputMethodService.java
parent6ab473af0069e542a5cc8153ac604e282e254b58 (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 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions