summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorRobert Carr <racarr@google.com>2017-04-25 10:54:24 -0700
committerRobert Carr <racarr@google.com>2017-04-25 10:54:24 -0700
commit5edb1add8b35c0d63645cb53fb175d459a689da5 (patch)
tree2529db31420719c227ed1e3e13b925de84dbdc13 /opengl/tests/gl_basic/gl_basic.cpp
parent693aa74db10007829973329451af3e2c6e586720 (diff)
SurfaceFlinger: Fix destruction of relatively Z-ordered layers.
We need to explicitly remove a layer from it's Z-order relative when the layer is removed from compositing, and not rely on being the last reference. In particular, at the time we are generating the list of visible layers by traversing, any layer which had just been removed will still be alive (but abandoned) with a ref in the previous list of visible layers. So we will succeed in promotion, and copy it to the new list. This way the layer achieves eternal life even after onRemoved is called. Bug: 36693738 Test: Manual from BR Change-Id: Ic6c3f64ceb0f603e7c0e51b136c23839858aa639
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions