diff options
author | Robert Carr <racarr@google.com> | 2022-03-10 09:55:29 -0800 |
---|---|---|
committer | Vikas batchu <quic_vikabatc@quicinc.com> | 2022-04-04 13:03:46 +0530 |
commit | 89dc40a167148fcf4243ee70d489831f3fc6625a (patch) | |
tree | b78008475aea40f9edfd1d51dc716df709a67725 /opengl/tests/gl_basic/gl_basic.cpp | |
parent | 07c2dbe420fbf86008823e8053c7c5a5b9cef47f (diff) |
CaptureLayers: Avoid promoting parent on binder thread
We promote the parent of the root layer when we call getLayerStack.
Since we don't hold an IBinder to the root layers parent, just to
the layer itself, this could create a situation where we are the last
reference to the layer. Layers have to be destroyed on the main
thread and so that would be invalid. Hopefully this is the last
case and now we can start getting rid of refbase for layer.
Bug: 220176775
Bug: 223069308
Bug: 223081111
Test: Existing tests pass
Change-Id: I37a0834ddac6d8e84170674aba0c49268d65fa11
(cherry picked from commit 12a3b9bba87d831f78faabb42523598a8d891ecc)
CRs-Fixed: 3159089
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions