diff options
author | Simon Ser <contact@emersion.fr> | 2020-08-22 17:24:16 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-11-15 22:54:07 +0100 |
commit | 61f8cdfb9ee2f8cc710c4cf947634c0c737e6383 (patch) | |
tree | ec629ed3985b19818dabe53ce748f87ae68f5a76 /include | |
parent | eb8360bda39bf48e2126e354fe6125c2e487c6b5 (diff) |
backend/headless: switch to wlr_swapchain
Diffstat (limited to 'include')
-rw-r--r-- | include/backend/headless.h | 7 |
1 files changed, 4 insertions, 3 deletions
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 <wlr/backend/headless.h> #include <wlr/backend/interface.h> -#include <wlr/render/gles2.h> #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 |