mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-29 15:00:14 +01:00
It's currently assumed by backends that renderers discard renderbuffers on resize. This commit introduces a new weston_renderbuffer_discarded_func callback that must be passed at renderbuffer creation in order to be notified of discarded events from the renderer. This discarded event could potentially be reused later by renderers on other occasions without having to change backends once they get proper support for that. On output resize, once a discarded event handler fails (returns false) on a renderbuffer, all the remaining renderbuffers in the output list go stale and weston_renderer_resize_output() ultimately returns false for backends to be notified of the failure. Signed-off-by: Loïc Molinari <loic.molinari@collabora.com> |
||
|---|---|---|
| .. | ||
| meson.build | ||
| wayland.c | ||