ozone/wayland: Fix possible race with surfaces and buffers.
There is a possible race that results in a terminated gpu process. That is, a surface may have been destroyed right before a request that creates or commits buffers. To fix that, always create buffers anonymously aka not attached to any surfaces, and simply remove the pointer that the WaylandBufferManagerHost::Surface has to the WaylandWindow so that it does not try to do anything except the destruction of buffers, the call for which can come later from the GPU process. Bug: 1006813 Change-Id: I9f207ec8dac92b94a1e8f8b9fc9cd3fdb0186580 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1924247Reviewed-by:Robert Kroeger <rjkroege@chromium.org> Reviewed-by:
Daniel Cheng <dcheng@chromium.org> Commit-Queue: Maksim Sisov <msisov@igalia.com> Cr-Commit-Position: refs/heads/master@{#718271}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment