From c82f37542d3a63c3b5dd573dcdb8559ea1f888f7 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 29 Apr 2021 09:18:19 +0200 Subject: backend/headless: use common renderer and allocator Instead of managing our own renderer and allocator, let the common code do it. Because wlr_headless_backend_create_with_renderer needs to re-use the parent renderer, we have to hand-roll some of the renderer initialization. --- include/backend/headless.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include/backend') diff --git a/include/backend/headless.h b/include/backend/headless.h index a6720eb4..1ad82fc2 100644 --- a/include/backend/headless.h +++ b/include/backend/headless.h @@ -9,16 +9,14 @@ struct wlr_headless_backend { struct wlr_backend backend; int drm_fd; - struct wlr_renderer *renderer; - struct wlr_allocator *allocator; struct wlr_drm_format *format; struct wl_display *display; struct wl_list outputs; size_t last_output_num; struct wl_list input_devices; struct wl_listener display_destroy; - struct wl_listener renderer_destroy; - bool has_parent_renderer; + struct wlr_renderer *parent_renderer; + struct wl_listener parent_renderer_destroy; bool started; }; -- cgit v1.2.3