mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
linux-dmabuf-v1: drop wlr_renderer field
This isn't used anymore.
This commit is contained in:
parent
88493d1f7c
commit
9c04fd2496
2 changed files with 0 additions and 13 deletions
|
@ -57,7 +57,6 @@ struct wlr_linux_dmabuf_feedback_v1_tranche {
|
||||||
/* the protocol interface */
|
/* the protocol interface */
|
||||||
struct wlr_linux_dmabuf_v1 {
|
struct wlr_linux_dmabuf_v1 {
|
||||||
struct wl_global *global;
|
struct wl_global *global;
|
||||||
struct wlr_renderer *renderer;
|
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
struct wl_signal destroy;
|
struct wl_signal destroy;
|
||||||
|
@ -72,7 +71,6 @@ struct wlr_linux_dmabuf_v1 {
|
||||||
int main_device_fd; // to sanity check FDs sent by clients
|
int main_device_fd; // to sanity check FDs sent by clients
|
||||||
|
|
||||||
struct wl_listener display_destroy;
|
struct wl_listener display_destroy;
|
||||||
struct wl_listener renderer_destroy;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -893,7 +893,6 @@ static void linux_dmabuf_v1_destroy(struct wlr_linux_dmabuf_v1 *linux_dmabuf) {
|
||||||
close(linux_dmabuf->main_device_fd);
|
close(linux_dmabuf->main_device_fd);
|
||||||
|
|
||||||
wl_list_remove(&linux_dmabuf->display_destroy.link);
|
wl_list_remove(&linux_dmabuf->display_destroy.link);
|
||||||
wl_list_remove(&linux_dmabuf->renderer_destroy.link);
|
|
||||||
|
|
||||||
wl_global_destroy(linux_dmabuf->global);
|
wl_global_destroy(linux_dmabuf->global);
|
||||||
free(linux_dmabuf);
|
free(linux_dmabuf);
|
||||||
|
@ -905,12 +904,6 @@ static void handle_display_destroy(struct wl_listener *listener, void *data) {
|
||||||
linux_dmabuf_v1_destroy(linux_dmabuf);
|
linux_dmabuf_v1_destroy(linux_dmabuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void handle_renderer_destroy(struct wl_listener *listener, void *data) {
|
|
||||||
struct wlr_linux_dmabuf_v1 *linux_dmabuf =
|
|
||||||
wl_container_of(listener, linux_dmabuf, renderer_destroy);
|
|
||||||
linux_dmabuf_v1_destroy(linux_dmabuf);
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool set_default_feedback(struct wlr_linux_dmabuf_v1 *linux_dmabuf,
|
static bool set_default_feedback(struct wlr_linux_dmabuf_v1 *linux_dmabuf,
|
||||||
const struct wlr_linux_dmabuf_feedback_v1 *feedback) {
|
const struct wlr_linux_dmabuf_feedback_v1 *feedback) {
|
||||||
struct wlr_linux_dmabuf_feedback_v1_compiled *compiled = feedback_compile(feedback);
|
struct wlr_linux_dmabuf_feedback_v1_compiled *compiled = feedback_compile(feedback);
|
||||||
|
@ -985,7 +978,6 @@ struct wlr_linux_dmabuf_v1 *wlr_linux_dmabuf_v1_create_with_renderer(struct wl_d
|
||||||
wlr_log(WLR_ERROR, "could not create simple dmabuf manager");
|
wlr_log(WLR_ERROR, "could not create simple dmabuf manager");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
linux_dmabuf->renderer = renderer;
|
|
||||||
linux_dmabuf->main_device_fd = -1;
|
linux_dmabuf->main_device_fd = -1;
|
||||||
|
|
||||||
wl_list_init(&linux_dmabuf->surfaces);
|
wl_list_init(&linux_dmabuf->surfaces);
|
||||||
|
@ -1014,9 +1006,6 @@ struct wlr_linux_dmabuf_v1 *wlr_linux_dmabuf_v1_create_with_renderer(struct wl_d
|
||||||
linux_dmabuf->display_destroy.notify = handle_display_destroy;
|
linux_dmabuf->display_destroy.notify = handle_display_destroy;
|
||||||
wl_display_add_destroy_listener(display, &linux_dmabuf->display_destroy);
|
wl_display_add_destroy_listener(display, &linux_dmabuf->display_destroy);
|
||||||
|
|
||||||
linux_dmabuf->renderer_destroy.notify = handle_renderer_destroy;
|
|
||||||
wl_signal_add(&renderer->events.destroy, &linux_dmabuf->renderer_destroy);
|
|
||||||
|
|
||||||
wlr_buffer_register_resource_interface(&buffer_resource_interface);
|
wlr_buffer_register_resource_interface(&buffer_resource_interface);
|
||||||
|
|
||||||
return linux_dmabuf;
|
return linux_dmabuf;
|
||||||
|
|
Loading…
Reference in a new issue