mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-19 06:47:02 -04:00
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:
parent
9affcaa93c
commit
0a8e8aec58
2 changed files with 56 additions and 22 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue