linux-dmabuf-v1: drop wlr_renderer field

This isn't used anymore.
This commit is contained in:
Simon Ser 2022-11-30 13:25:56 +01:00
parent 88493d1f7c
commit 9c04fd2496
2 changed files with 0 additions and 13 deletions

View File

@ -57,7 +57,6 @@ struct wlr_linux_dmabuf_feedback_v1_tranche {
/* the protocol interface */
struct wlr_linux_dmabuf_v1 {
struct wl_global *global;
struct wlr_renderer *renderer;
struct {
struct wl_signal destroy;
@ -72,7 +71,6 @@ struct wlr_linux_dmabuf_v1 {
int main_device_fd; // to sanity check FDs sent by clients
struct wl_listener display_destroy;
struct wl_listener renderer_destroy;
};
/**

View File

@ -893,7 +893,6 @@ static void linux_dmabuf_v1_destroy(struct wlr_linux_dmabuf_v1 *linux_dmabuf) {
close(linux_dmabuf->main_device_fd);
wl_list_remove(&linux_dmabuf->display_destroy.link);
wl_list_remove(&linux_dmabuf->renderer_destroy.link);
wl_global_destroy(linux_dmabuf->global);
free(linux_dmabuf);
@ -905,12 +904,6 @@ static void handle_display_destroy(struct wl_listener *listener, void *data) {
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,
const struct wlr_linux_dmabuf_feedback_v1 *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");
return NULL;
}
linux_dmabuf->renderer = renderer;
linux_dmabuf->main_device_fd = -1;
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;
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);
return linux_dmabuf;