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.
This commit is contained in:
Simon Ser 2023-11-21 16:39:36 +01:00
parent 0052078bd3
commit 4ec901bb33
2 changed files with 66 additions and 24 deletions

View file

@ -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 */