summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2019-06-03 17:26:48 -0700
committer Vishnu Nair <vishnun@google.com> 2019-06-03 17:26:48 -0700
commitda9c85a1b4b66aa1250a20cec7375a45af11255f (patch)
tree486e6d7d8934ffec6f60be8cf79de8606c734f37 /libs/gui/BufferQueueThreadState.cpp
parent9d2f210f09d61608a94cd3ac3a4df405fa365ebe (diff)
Preserve relative z layer info when moving layers offscreen
When a layer is removed from screen, by reparenting it to null, we need to remove its relative z info as well. Otherwise, if the layer has a visible relative parent, it will continue to be drawn. However, there are some scenarios where it maybe useful to preserve relative z. When a layer is temporarily moved offscreen, and the layer has children with relative z ordered to other children, then the client logic can be made simpler by preserving the relative z info for all the children and only removing relative z info if its relative parent is not on the pending removal state. Bug: 132613412 Test: atest SurfaceFlinger_test Test: go/wm-smoke Change-Id: Id9e2d164673c9028fb27a38ab2b3005269ad4932
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions