scene: make wlr_scene_buffer release buffers

Make wlr_scene_buffer release buffers as soon as it doesn't need
them anymore. This allows the caller to re-use the buffer.
This commit is contained in:
Simon Ser 2023-04-11 21:51:14 +02:00
parent 9affcaa93c
commit 0a8e8aec58
2 changed files with 56 additions and 22 deletions

View file

@ -173,6 +173,8 @@ struct wlr_scene_buffer {
enum wl_output_transform transform;
pixman_region32_t opaque_region;
struct wlr_linux_dmabuf_feedback_v1_init_options prev_feedback_options;
bool buffer_locked;
struct wl_listener buffer_release;
};
/** A viewport for an output in the scene-graph */