render: introduce wlr_renderer_get_drm_fd

This commit is contained in:
Simon Ser 2020-06-10 14:47:12 +02:00
parent c8d95acc37
commit eb8360bda3
5 changed files with 34 additions and 0 deletions

View file

@ -131,6 +131,13 @@ bool wlr_renderer_format_supported(struct wlr_renderer *r,
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.
*/