mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
output: switch swap_buffers damage to output-buffer-local coords
This is one more step towards [1]. This gives more freedom to the compositor wrt. how it handles damage. [1]: https://github.com/swaywm/wlroots/issues/1363
This commit is contained in:
parent
a22311ec76
commit
6aaefad40d
3 changed files with 12 additions and 14 deletions
|
|
@ -121,7 +121,7 @@ struct wlr_output {
|
|||
struct wlr_output_event_swap_buffers {
|
||||
struct wlr_output *output;
|
||||
struct timespec *when;
|
||||
pixman_region32_t *damage;
|
||||
pixman_region32_t *damage; // output-buffer-local coordinates
|
||||
};
|
||||
|
||||
enum wlr_output_present_flag {
|
||||
|
|
@ -203,6 +203,9 @@ bool wlr_output_preferred_read_format(struct wlr_output *output,
|
|||
* NULL. If the compositor doesn't support damage tracking, set `damage` to
|
||||
* NULL.
|
||||
*
|
||||
* Damage is given in output-buffer-local coordinates (ie. scaled and
|
||||
* transformed).
|
||||
*
|
||||
* Swapping buffers schedules a `frame` event.
|
||||
*/
|
||||
bool wlr_output_swap_buffers(struct wlr_output *output, struct timespec *when,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue