diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-09-15 04:22:00 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-09-15 04:22:00 +0200 |
commit | f6f8fdb33c630973cc0cc8c1f4f92efa6e4cb7c8 (patch) | |
tree | fce41200c196e909a648b18a56140ceaf276ac92 /include/pipewire.h | |
parent | f53d7b30b1afab466257fee3d3a3823cff3ff2ad (diff) |
Portal: sync capture to frame update
Diffstat (limited to 'include/pipewire.h')
-rw-r--r-- | include/pipewire.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/pipewire.h b/include/pipewire.h index 8e20616..13c4b67 100644 --- a/include/pipewire.h +++ b/include/pipewire.h @@ -65,6 +65,7 @@ typedef struct { struct spa_video_info format; int server_version_sync; bool negotiated; + bool damaged; struct { bool visible; @@ -105,5 +106,7 @@ void gsr_pipewire_deinit(gsr_pipewire *self); /* |plane_fds| should be at least GSR_PIPEWIRE_DMABUF_MAX_PLANES in size */ bool gsr_pipewire_map_texture(gsr_pipewire *self, gsr_texture_map texture_map, gsr_pipewire_region *region, gsr_pipewire_region *cursor_region, int *plane_fds, int *num_plane_fds, bool *using_external_image); +bool gsr_pipewire_is_damaged(gsr_pipewire *self); +void gsr_pipewire_clear_damage(gsr_pipewire *self); #endif /* GSR_PIPEWIRE_H */ |