aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-04-06 13:27:05 +0200
committerDrew DeVault <sir@cmpwn.com>2020-04-22 22:40:54 +0200
commit6129a6f93e97680dfe7e983db2ee7671edb5ffbe (patch)
tree0c4873841587f434973382f2a551420e7230156d /include/wlr
parent40513f1a0ec3cb2b2fdc4b0dbd4765d152ef76ce (diff)
backend/headless: add wlr_headless_backend_create_with_renderer
This allows one to create a headless backend with an existing renderer.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/backend/headless.h5
1 files changed, 5 insertions, 0 deletions
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.