mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-04-29 12:51:41 +02:00
Although backends can create renderbuffers of any size, they always request the output's current mode size (including decorations). Letting backends ask for a different size than the output has a few read-back related design issues like for instance weston_renderer's read_pixels() API users, currently assuming the output size and without knowledge of renderbuffers, can retrieve cropped images if a backend asks for a smaller size. Same issue for the output capture subsystem. This commit proposes to fix these issues by simply, albeit perhaps radically, removing the width and height parameters from create_renderbuffer(), enforcing the current mode's size of the associated output. The VNC and PipeWire backends now also access the output size via the current mode, not through the width and height variables. This has the benefit of unifying the backends, as well as the renderers, in their use of output sizes. Signed-off-by: Loïc Molinari <loic.molinari@collabora.com> |
||
|---|---|---|
| .. | ||
| meson.build | ||
| wayland.c | ||