diff options
author | Simon Ser <contact@emersion.fr> | 2023-11-21 16:39:36 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2024-01-27 12:21:54 +0000 |
commit | 4ec901bb33bdac70356bf00a23133d81ca0d10df (patch) | |
tree | 52ee0405d002aaf3a64bac76b0c95ceec43ba9ac /include | |
parent | 0052078bd3c65c083f0768a9a02b55be77b9fd6c (diff) |
scene: release shm buffers once uploaded
Once a shm buffer is uploaded there's no reason for wlr_scene_buffer
to keep it locked any further. Allow the compositor to re-use it.
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_scene.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index 76ac32ec..253de169 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -185,6 +185,12 @@ struct wlr_scene_buffer { uint64_t active_outputs; struct wlr_texture *texture; struct wlr_linux_dmabuf_feedback_v1_init_options prev_feedback_options; + + bool own_buffer; + int buffer_width, buffer_height; + bool buffer_is_opaque; + + struct wl_listener buffer_release; }; /** A viewport for an output in the scene-graph */ |