[ozone/wayland] Reset surface contents in a safe way
Currently, WaylandWindow may attach a null buffer to a surface, which makes the Wayland compositor skip the buffer release call even though there was a buffer attached. The skipped buffer release call results in a missed submission callback, and the Chromium display compositor starts to lag behind one frame. What is more, we no longer trigger a buffer swap completion callback before presention feedback is provided, which also results in DCHECK when checking the order of the callbacks. Bug: 968497 Change-Id: I12494e78fa376d6c421b7366d0bddb52ae59a5af Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1636354 Commit-Queue: Maksim Sisov <msisov@igalia.com> Reviewed-by:Robert Kroeger <rjkroege@chromium.org> Cr-Commit-Position: refs/heads/master@{#665833}
Showing
Please register or sign in to comment