mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
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:
parent
0052078bd3
commit
4ec901bb33
2 changed files with 66 additions and 24 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue