mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 02:19:49 +01:00
linux-dmabuf-v1: add "_with_renderer" suffix to create() function
Make it clear this is a helper consuming a wlr_renderer. We'll add a lower-level create() function which doesn't take it in the next commit.
This commit is contained in:
parent
0611c10909
commit
444d94ef89
3 changed files with 6 additions and 4 deletions
|
@ -72,9 +72,11 @@ struct wlr_linux_dmabuf_v1 {
|
|||
};
|
||||
|
||||
/**
|
||||
* Create linux-dmabuf interface.
|
||||
* Create the linux-dmabuf-unstable-v1 global.
|
||||
*
|
||||
* The default DMA-BUF feedback is initialized from the struct wlr_renderer.
|
||||
*/
|
||||
struct wlr_linux_dmabuf_v1 *wlr_linux_dmabuf_v1_create(struct wl_display *display,
|
||||
struct wlr_linux_dmabuf_v1 *wlr_linux_dmabuf_v1_create_with_renderer(struct wl_display *display,
|
||||
struct wlr_renderer *renderer);
|
||||
|
||||
/**
|
||||
|
|
|
@ -232,7 +232,7 @@ bool wlr_renderer_init_wl_display(struct wlr_renderer *r,
|
|||
wlr_log(WLR_INFO, "Cannot get renderer DRM FD, disabling wl_drm");
|
||||
}
|
||||
|
||||
if (wlr_linux_dmabuf_v1_create(wl_display, r) == NULL) {
|
||||
if (wlr_linux_dmabuf_v1_create_with_renderer(wl_display, r) == NULL) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -926,7 +926,7 @@ static void handle_renderer_destroy(struct wl_listener *listener, void *data) {
|
|||
linux_dmabuf_v1_destroy(linux_dmabuf);
|
||||
}
|
||||
|
||||
struct wlr_linux_dmabuf_v1 *wlr_linux_dmabuf_v1_create(struct wl_display *display,
|
||||
struct wlr_linux_dmabuf_v1 *wlr_linux_dmabuf_v1_create_with_renderer(struct wl_display *display,
|
||||
struct wlr_renderer *renderer) {
|
||||
struct wlr_linux_dmabuf_v1 *linux_dmabuf =
|
||||
calloc(1, sizeof(struct wlr_linux_dmabuf_v1));
|
||||
|
|
Loading…
Reference in a new issue