aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/wlr/types/wlr_linux_dmabuf_v1.h2
-rw-r--r--types/wlr_linux_dmabuf_v1.c11
2 files changed, 0 insertions, 13 deletions
diff --git a/include/wlr/types/wlr_linux_dmabuf_v1.h b/include/wlr/types/wlr_linux_dmabuf_v1.h
index 93413f72..e56c904a 100644
--- a/include/wlr/types/wlr_linux_dmabuf_v1.h
+++ b/include/wlr/types/wlr_linux_dmabuf_v1.h
@@ -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;
};
/**
diff --git a/types/wlr_linux_dmabuf_v1.c b/types/wlr_linux_dmabuf_v1.c
index f4d5a0fd..739b2f96 100644
--- a/types/wlr_linux_dmabuf_v1.c
+++ b/types/wlr_linux_dmabuf_v1.c
@@ -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;