summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author chaviw <chaviw@google.com> 2019-08-12 13:16:09 -0700
committer chaviw <chaviw@google.com> 2019-08-12 13:19:40 -0700
commit32811fd034717f1705d8454f4419b9718e3fe6a7 (patch)
tree800ee557a1b94eeebfa8b80b7c0ec668454f21e0 /vulkan/libvulkan/api.cpp
parent4f17282e3122838d4581ca2f279386c3a9e1537e (diff)
Let Screenshot Parent get destroyed on the main thread.
Currently the reference to Screenshot Parent is held by the LayerRenderArea class. That object loses its last reference on the binder thread so the Screenshot Parent is destroyed on the binder thread. To keep things consistent, it's best if the Layer is destroyed on the main thread, like other layers. By removing the reference to Screenshot Parent in LayerRenderArea and only having a reference in RenderForDrawing, it ensures that the last reference to the Screenshot Parent is dropped on the main thread. Test: Screenshot Parent destructor is called on main thread. Change-Id: I82f641a063102584d0a2eddb8a6b11546ed777b2
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions