viz: Fix destroying gfx::GpuMemoryBuffers.
The destruction callback of a GpuMemoryBufferImpls can be called on any thread[1]. So make sure the destruction callbacks hops onto the correct thread before mutating local data structures or sending mojo messages. [1] See doc for GpuMemoryBufferImpl::CreateFromHandle() https://cs.chromium.org/chromium/src/gpu/ipc/client/gpu_memory_buffer_impl.h?l=28 BUG=733482 Change-Id: Ifc3fecd6a8bb42aa61f3d2d9667bd0e931d7261c Reviewed-on: https://chromium-review.googlesource.com/565858 Commit-Queue: Sadrul Chowdhury <sadrul@chromium.org> Reviewed-by:David Reveman <reveman@chromium.org> Cr-Commit-Position: refs/heads/master@{#488793}
Showing
Please register or sign in to comment