aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-06-07 16:31:53 +0200
committerSimon Ser <contact@emersion.fr>2021-12-07 15:15:28 +0100
commit77d811a21b3d1dfb4ef6634e870c6c37228f3c15 (patch)
tree9543457521bf491908c7a04fc29f82b863657e6f /include/wlr/render
parentc9f3c2b4f7052e4d4901661a953072ac030bf153 (diff)
render: add wlr_renderer_init_wl_shm
This allows compositors to initialize wl_shm without initializing other globals like linux-dmabuf.
Diffstat (limited to 'include/wlr/render')
-rw-r--r--include/wlr/render/wlr_renderer.h8
1 files changed, 7 insertions, 1 deletions
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,7 +99,7 @@ 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.
*/
@@ -107,6 +107,12 @@ 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.
*
* The caller doesn't have ownership of the FD, it must not close it.