diff options
author | Simon Ser <contact@emersion.fr> | 2020-06-10 14:47:12 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-11-15 22:54:07 +0100 |
commit | eb8360bda39bf48e2126e354fe6125c2e487c6b5 (patch) | |
tree | cc2ffeef09223aa01e21968e3e20fa4784c5052b /include/wlr/render/wlr_renderer.h | |
parent | c8d95acc37a1f3aa74538e4b9c688c2ed98227c6 (diff) |
render: introduce wlr_renderer_get_drm_fd
Diffstat (limited to 'include/wlr/render/wlr_renderer.h')
-rw-r--r-- | include/wlr/render/wlr_renderer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h index 8908d3ce..915ec915 100644 --- a/include/wlr/render/wlr_renderer.h +++ b/include/wlr/render/wlr_renderer.h @@ -132,6 +132,13 @@ bool wlr_renderer_init_wl_display(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. + */ +int wlr_renderer_get_drm_fd(struct wlr_renderer *r); + +/** * Destroys this wlr_renderer. Textures must be destroyed separately. */ void wlr_renderer_destroy(struct wlr_renderer *renderer); |