mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
linux-drm-syncobj-v1: add helper to signal on buffer release
This commit is contained in:
parent
c7035da5e2
commit
850dd7a792
2 changed files with 46 additions and 0 deletions
|
|
@ -43,4 +43,13 @@ struct wlr_linux_drm_syncobj_manager_v1 *wlr_linux_drm_syncobj_manager_v1_create
|
|||
struct wlr_linux_drm_syncobj_surface_v1_state *wlr_linux_drm_syncobj_v1_get_surface_state(
|
||||
struct wlr_surface *surface);
|
||||
|
||||
/**
|
||||
* Signal the release point when wlr_buffer.events.release is emitted.
|
||||
*
|
||||
* Compositors unwilling to track fine-grained commit release can call this
|
||||
* helper on surface commit.
|
||||
*/
|
||||
bool wlr_linux_drm_syncobj_v1_state_signal_release_with_buffer(
|
||||
struct wlr_linux_drm_syncobj_surface_v1_state *state, struct wlr_buffer *buffer);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue