From 77d811a21b3d1dfb4ef6634e870c6c37228f3c15 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 7 Jun 2021 16:31:53 +0200 Subject: render: add wlr_renderer_init_wl_shm This allows compositors to initialize wl_shm without initializing other globals like linux-dmabuf. --- include/wlr/render/wlr_renderer.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include/wlr/render') diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h index bae2fa97..d8b04dc7 100644 --- a/include/wlr/render/wlr_renderer.h +++ b/include/wlr/render/wlr_renderer.h @@ -99,13 +99,19 @@ bool wlr_renderer_read_pixels(struct wlr_renderer *r, uint32_t fmt, uint32_t src_x, uint32_t src_y, uint32_t dst_x, uint32_t dst_y, void *data); /** - * Creates necessary shm and invokes the initialization of the implementation. + * Initializes wl_shm, linux-dmabuf and other buffer factory protocols. * * Returns false on failure. */ bool wlr_renderer_init_wl_display(struct wlr_renderer *r, struct wl_display *wl_display); +/** + * Initializes wl_shm on the provided wl_display. + */ +bool wlr_renderer_init_wl_shm(struct wlr_renderer *r, + struct wl_display *wl_display); + /** * Obtains the FD of the DRM device used for rendering, or -1 if unavailable. * -- cgit v1.2.3