Don't block IO thread for GpuMemoryBuffer allocations
Currently GpuServiceImpl::CreateGpuMemoryBuffer blocks the IO thread until the DRM thread allocates the buffer. However, the DRM thread cannot allocate the buffer until the corresponding AcceleratedWidget is registered, which depends on the IO thread staying responsive in order to receive the registration message from the browser and process it. This causes a deadlock. In order to avoid this, make GpuServiceImpl::CreateGpuMemoryBuffer asynchronous. Bug: 981721,620927 Change-Id: Id35f17cc4ff3a800999e84cb76ca3e134bc13a8d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1696353 Commit-Queue: Saman Sami <samans@chromium.org> Reviewed-by:Peng Huang <penghuang@chromium.org> Reviewed-by:
Michael Spang <spang@chromium.org> Cr-Commit-Position: refs/heads/master@{#676629}
Showing
Please register or sign in to comment