Igalia / wolvic-chromium

The official GitHub mirror of the Chromium source
https://chromium.googlesource.com/chromium/src/
BSD 3-Clause "New" or "Revised" License
11 stars 6 forks source link

Add GpuFence for frame sync #32

Open tiagovignatti opened 1 year ago

tiagovignatti commented 1 year ago

GpuFence is a wrapper for native fence sync including IPC and mojo transport.

render_completion_fence is used to avoid overstuffed buffers in WebXR. The basic idea is to submit incomplete frames to Wolvic, with the fence ensuring the next frame's GL commands get in line behind the current frame.

Also, for tracing purposes, and if we want to do it later, it's simple now to get the time when rendering completed for it.

GpuFence is needed for shared buffer transport on WebXR, coming next.