screencopy: Implement damage reporting

This commit is contained in:
Andri Yngvason 2019-10-19 14:46:43 +00:00 committed by Drew DeVault
parent 2a63f4fc61
commit 61a6f2b928
2 changed files with 208 additions and 28 deletions

View file

@ -27,9 +27,15 @@ struct wlr_screencopy_manager_v1 {
void *data;
};
struct wlr_screencopy_v1_client {
int ref;
struct wlr_screencopy_manager_v1 *manager;
struct wl_list damages;
};
struct wlr_screencopy_frame_v1 {
struct wl_resource *resource;
struct wlr_screencopy_manager_v1 *manager;
struct wlr_screencopy_v1_client *client;
struct wl_list link;
enum wl_shm_format format;
@ -38,6 +44,8 @@ struct wlr_screencopy_frame_v1 {
bool overlay_cursor, cursor_locked;
bool with_damage;
struct wl_shm_buffer *buffer;
struct wl_listener buffer_destroy;