Merge pull request #1403 from emersion/swap-buffers-damage-coords

output: switch swap_buffers damage to output-buffer-local coords
This commit is contained in:
Drew DeVault 2018-12-02 13:17:24 -05:00 committed by GitHub
commit 273e110b74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 14 deletions

View file

@ -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,