From 61f8cdfb9ee2f8cc710c4cf947634c0c737e6383 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 22 Aug 2020 17:24:16 +0200 Subject: backend/headless: switch to wlr_swapchain --- include/backend/headless.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/backend') diff --git a/include/backend/headless.h b/include/backend/headless.h index 5681c2bd..4a29b033 100644 --- a/include/backend/headless.h +++ b/include/backend/headless.h @@ -3,7 +3,6 @@ #include #include -#include #define HEADLESS_DEFAULT_REFRESH (60 * 1000) // 60 Hz @@ -12,6 +11,8 @@ struct wlr_headless_backend { struct wlr_egl priv_egl; // may be uninitialized struct wlr_egl *egl; 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; @@ -19,7 +20,6 @@ struct wlr_headless_backend { struct wl_listener display_destroy; struct wl_listener renderer_destroy; bool started; - GLenum internal_format; }; struct wlr_headless_output { @@ -28,7 +28,8 @@ struct wlr_headless_output { struct wlr_headless_backend *backend; struct wl_list link; - GLuint fbo, rbo; + struct wlr_swapchain *swapchain; + struct wlr_buffer *back_buffer, *front_buffer; struct wl_event_source *frame_timer; int frame_delay; // ms -- cgit v1.2.3