mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-06 07:10:44 +02:00
For the implementation of fifo-v1, we need to be able to track the presentation of individual surface commits. This is done already in `wlr_presentation_time`, but the way that is implemented is suited only for use by clients through the protocol interface (.feedback requests). Here we use the `surface_output` structure, which is a low-level structure that links wlr_surfaces with wlr_outputs. Within this structure we listen to the surface's and the output's .commit events. Through these 2 we link a surface commit to an output commit. Then, a new struct wlr_surface_output_commit is created which listens to the output's .present event. For the interface to this functionality, 2 elements are introduced: the new .present event in struct wlr_surface_output, which signals listeners whether a particular pair of (surface_seq, output_seq) has been presented or discarded, and the wlr_surface_textured_on_output() function, used by the scene logic to inform the implementation that the surface's buffer has been textured on a particular output. Signed-off-by: Sergio Gómez <sergio.g.delreal@gmail.com> |
||
|---|---|---|
| .. | ||
| backend | ||
| interfaces | ||
| render | ||
| types | ||
| util | ||
| wlr | ||
| xcursor | ||
| xwayland | ||
| meson.build | ||