From 44feb832f965ec857c2a45a858c95cefb50bb547 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 1 Dec 2020 16:24:06 +0100 Subject: backend/headless: remove swapchain Rely on wlr_output's generic swapchain support instead of creating our own. The headless output now simply keeps a reference to the front buffer and does nothing else. --- include/backend/headless.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include/backend') diff --git a/include/backend/headless.h b/include/backend/headless.h index 1ad82fc2..2ec53383 100644 --- a/include/backend/headless.h +++ b/include/backend/headless.h @@ -9,7 +9,6 @@ struct wlr_headless_backend { struct wlr_backend backend; int drm_fd; - struct wlr_drm_format *format; struct wl_display *display; struct wl_list outputs; size_t last_output_num; @@ -26,8 +25,7 @@ struct wlr_headless_output { struct wlr_headless_backend *backend; struct wl_list link; - struct wlr_swapchain *swapchain; - struct wlr_buffer *back_buffer, *front_buffer; + struct wlr_buffer *front_buffer; struct wl_event_source *frame_timer; int frame_delay; // ms -- cgit v1.2.3