aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/backend/headless.h3
-rw-r--r--include/wlr/backend/headless.h5
2 files changed, 7 insertions, 1 deletions
diff --git a/include/backend/headless.h b/include/backend/headless.h
index d8cb4dc2..564cb154 100644
--- a/include/backend/headless.h
+++ b/include/backend/headless.h
@@ -9,7 +9,8 @@
struct wlr_headless_backend {
struct wlr_backend backend;
- struct wlr_egl egl;
+ struct wlr_egl priv_egl; // may be uninitialized
+ struct wlr_egl *egl;
struct wlr_renderer *renderer;
struct wl_display *display;
struct wl_list outputs;
diff --git a/include/wlr/backend/headless.h b/include/wlr/backend/headless.h
index eab102e2..f9481228 100644
--- a/include/wlr/backend/headless.h
+++ b/include/wlr/backend/headless.h
@@ -20,6 +20,11 @@
struct wlr_backend *wlr_headless_backend_create(struct wl_display *display,
wlr_renderer_create_func_t create_renderer_func);
/**
+ * Creates a headless backend with an existing renderer.
+ */
+struct wlr_backend *wlr_headless_backend_create_with_renderer(
+ struct wl_display *display, struct wlr_renderer *renderer);
+/**
* Create a new headless output backed by an in-memory EGL framebuffer. You can
* read pixels from this framebuffer via wlr_renderer_read_pixels but it is
* otherwise not displayed.