summaryrefslogtreecommitdiff
path: root/opengl/java
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2022-11-23 00:06:06 +0800
committer Riddle Hsu <riddlehsu@google.com> 2022-11-29 17:21:37 +0800
commit8fc6dc53ad252a700830c3b2f2cdd1f61aff6ae3 (patch)
treeb9e9d2a546265289cfb175fcdefd4247301a0589 /opengl/java
parent5a31efbff4af7b34d9a29a681ebea08dd6ead189 (diff)
Reduce computing unused ChangeInfo in Transition
Originally, if the window container can not be animated or controlled by remote, the intermediate ChangeInfo are just ignored during calculating TransitionInfo. So they can be skipped earlier at creation. For example when launching an activity in a task, there may be 10 ChangeInfo: 2 activities + Task + TaskDisplayArea + Display + 5 DisplayArea. With this change, the 5 DisplayArea will be ignored (if their organizers are not active): Root, WindowedMagnification, HideDisplayCutout, OneHanded, and FullscreenMagnification. Then in collect(), it no longer needs to traverse 30+ DisplayArea for creating the intermediate parent ChangeInfo. That would also speed up calculateTargets and calculateTransitionInfo because less ChangeInfo to look up. Also simplify getTopVisibleWallpaper (called in collect()) a bit by eliminating unnecessary overhead of forAllWindows. Bug: 260059642 Test: atest TransitionTests Change-Id: I15f3ccd5af2fe70f71c88d6d8676661c312aef2e
Diffstat (limited to 'opengl/java')
0 files changed, 0 insertions, 0 deletions