summaryrefslogtreecommitdiff
path: root/opengl/java
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2023-02-23 19:59:45 +0800
committer Riddle Hsu <riddlehsu@google.com> 2023-02-23 21:07:34 +0800
commitaee6d8ae83c182814fbd34e829625007af39fd31 (patch)
treec1f640bec87c5356c8397212d9a8627eb7f7ec82 /opengl/java
parentfcb2bb5183c7f323094f06e189309442c25b3c87 (diff)
Remove dead window preservation
The logic was never executed for a long time. At least since 2016 the condition "mAttrs.token != mClient.asBinder()" is added in WindowState#shouldKeepVisibleDeadAppWindow. Because the logic only cares activity window, but the token is ActivityRecord.Token, while mClient.asBinder() is the IWindow from ViewRootImpl.W, the condition is never satisfied. Also current code won't keep dead process's ActivityRecord which doesn't have a saved state. The original purpose is avoid thrashing to restart process when there are multiple visible activities but the RAM is not enough so low memory killer is triggered. Since the modern devices are more powerful, the logic can be removed as it's been years since no one found out that doesn't work. Bug: 163976519 Test: CtsWindowManagerDeviceTestCases Change-Id: I987828d278ec6fa7bb282e8a17af896e355048b8
Diffstat (limited to 'opengl/java')
0 files changed, 0 insertions, 0 deletions