mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
render: Add wlr_renderer_blit_dmabuf()
This commit is contained in:
parent
11b598fe33
commit
b64a8a7f98
5 changed files with 106 additions and 0 deletions
|
|
@ -64,6 +64,9 @@ struct wlr_renderer_impl {
|
|||
void (*destroy)(struct wlr_renderer *renderer);
|
||||
bool (*init_wl_display)(struct wlr_renderer *renderer,
|
||||
struct wl_display *wl_display);
|
||||
bool (*blit_dmabuf)(struct wlr_renderer *renderer,
|
||||
struct wlr_dmabuf_attributes *dst,
|
||||
struct wlr_dmabuf_attributes *src);
|
||||
};
|
||||
|
||||
void wlr_renderer_init(struct wlr_renderer *renderer,
|
||||
|
|
|
|||
|
|
@ -104,6 +104,12 @@ const struct wlr_drm_format_set *wlr_renderer_get_dmabuf_formats(
|
|||
bool wlr_renderer_read_pixels(struct wlr_renderer *r, enum wl_shm_format fmt,
|
||||
uint32_t *flags, uint32_t stride, uint32_t width, uint32_t height,
|
||||
uint32_t src_x, uint32_t src_y, uint32_t dst_x, uint32_t dst_y, void *data);
|
||||
|
||||
/**
|
||||
* Blits the dmabuf in src onto the one in dst.
|
||||
*/
|
||||
bool wlr_renderer_blit_dmabuf(struct wlr_renderer *r,
|
||||
struct wlr_dmabuf_attributes *dst, struct wlr_dmabuf_attributes *src);
|
||||
/**
|
||||
* Checks if a format is supported.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue