[ozone/wayland] Don't wait for frame callback after submission
Right now, the surface waits until the frame callback is fired, which results in undesired wait when the display compositor can submit new frame (the AsyncSwapBuffers takes about ~10ms). Instead, notify the client on successfull submission right after the buffer is attached, but as soon as a new frame comes, do not submit it, but rather wait the frame callback. The advantage of this approach is that the browser process does not block the display compositor's scheduler and allows it to operate as fast as possible (the AsyncSwapBuffers takes about ~0.6-1ms). Bug: 943096 Change-Id: I808896350a8cd33b87e956b0cec51d8fa0ff1cdb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1570028 Commit-Queue: Maksim Sisov <msisov@igalia.com> Reviewed-by:Michael Spang <spang@chromium.org> Cr-Commit-Position: refs/heads/master@{#659006}
Showing
This diff is collapsed.
Please register or sign in to comment