mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
shm: add create() function without a wlr_renderer
This allows compositors which don't use wlr_renderer to still use wlroots' wl_shm implementation.
This commit is contained in:
parent
3ed69b4946
commit
76b3687739
2 changed files with 14 additions and 3 deletions
|
|
@ -24,6 +24,17 @@ struct wlr_shm;
|
|||
|
||||
/**
|
||||
* Create the wl_shm global.
|
||||
*
|
||||
* Compositors using struct wlr_renderer should use wlr_shm_create_with_renderer()
|
||||
* instead.
|
||||
*/
|
||||
struct wlr_shm *wlr_shm_create(struct wl_display *display, uint32_t version,
|
||||
const uint32_t *formats, size_t formats_len);
|
||||
|
||||
/**
|
||||
* Create the wl_shm global.
|
||||
*
|
||||
* The pixel formats advertised to clients are taken from the struct wlr_renderer.
|
||||
*/
|
||||
struct wlr_shm *wlr_shm_create_with_renderer(struct wl_display *display,
|
||||
uint32_t version, struct wlr_renderer *renderer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue