backend/headless: add wlr_headless_backend_create_with_renderer

This allows one to create a headless backend with an existing renderer.
This commit is contained in:
Simon Ser 2020-04-06 13:27:05 +02:00 committed by Drew DeVault
parent 40513f1a0e
commit 6129a6f93e
4 changed files with 80 additions and 43 deletions

View file

@ -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;