diff options
author | Ming-Shin Lu <lumark@google.com> | 2021-08-06 22:43:00 +0800 |
---|---|---|
committer | Ming-Shin Lu <lumark@google.com> | 2021-08-12 12:47:28 +0000 |
commit | 5167131c79dfec789d652c556703022c4010b92b (patch) | |
tree | 6ec56b223d1a10d4fed4bf893d443bdedf341a5f /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | e421c1c29109ce0c1720c2d4a26bddb6abc86258 (diff) |
Improve shouldRestoreImeVisibility perf
shouldRestoreImeVisibility(token) used to check if the task window
token should restore IME visibliity by checking the tasksnapshot.
Previously by default it calls mAtmService.getTaskSnapshot() to load
tasksnapshot from the disk if the does not exist, which caused
additional bitmap allocation to see if the tasksnapshot is not active.
Since we only check the IME surface from the tasksnapshot when
the task is still running. Also, after the next booted, tapping
the tasksnapshot from the overview will be refreshed with
splashscreen that we don't trying to restore IME visiblity
for that case.
Use WMS#getTaskSnapshot with specifying restoreFromDisk parameter as
false to get the active tasksnapshot from memory.
Fix: 195347355
Test: Enable systrace on device from developer option,
launch an App with showing IME, swiping up to the overview
and then tapping the original task again, expect no
additional EGLContext created in the systrace.
Change-Id: I0abb5d6d77fdb200c737e7582923ced9ee98ad05
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions