mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-06 13:29:45 -05:00
linux-dmabuf-v1: introduce wlr_linux_dmabuf_v1_create()
Some compositors may want to use the linux-dmabuf-v1 implementation with a completely custom renderer. Add a function to create the global with a default feedback.
This commit is contained in:
parent
9c04fd2496
commit
f103dc74d8
2 changed files with 26 additions and 12 deletions
|
|
@ -73,6 +73,15 @@ struct wlr_linux_dmabuf_v1 {
|
|||
struct wl_listener display_destroy;
|
||||
};
|
||||
|
||||
/**
|
||||
* Create the linux-dmabuf-unstable-v1 global.
|
||||
*
|
||||
* Compositors using struct wlr_renderer should use
|
||||
* wlr_linux_dmabuf_v1_create_with_renderer() instead.
|
||||
*/
|
||||
struct wlr_linux_dmabuf_v1 *wlr_linux_dmabuf_v1_create(struct wl_display *display,
|
||||
uint32_t version, const struct wlr_linux_dmabuf_feedback_v1 *default_feedback);
|
||||
|
||||
/**
|
||||
* Create the linux-dmabuf-unstable-v1 global.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue