mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-18 06:47:31 -04:00
render: take event loop as input when creating renderer
Some renderers will need access to the event loop for async GPU uploads.
This commit is contained in:
parent
3b3640dda4
commit
7abb227617
3 changed files with 8 additions and 7 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/**
|
||||
* Automatically select and create a renderer suitable for the DRM FD.
|
||||
*/
|
||||
struct wlr_renderer *renderer_autocreate_with_drm_fd(int drm_fd);
|
||||
struct wlr_renderer *renderer_autocreate_with_drm_fd(int drm_fd, struct wl_event_loop *loop);
|
||||
/**
|
||||
* Get the supported render formats. Buffers allocated with a format from this
|
||||
* list may be attached via wlr_renderer_begin_with_buffer.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue