diff options
author | Andri Yngvason <andri@yngvason.is> | 2020-04-22 23:23:56 +0000 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-06-08 20:49:41 +0200 |
commit | b64a8a7f9885319bb60cd202a0a988d50a7c79db (patch) | |
tree | b2ce164f5bbd70f9b37713ce350f72bea4bfcbaa /include/wlr/render/wlr_renderer.h | |
parent | 11b598fe33a29f1f6c41faf6b1dfbdd94af6d19b (diff) |
render: Add wlr_renderer_blit_dmabuf()
Diffstat (limited to 'include/wlr/render/wlr_renderer.h')
-rw-r--r-- | include/wlr/render/wlr_renderer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h index db543bef..e6140f3e 100644 --- a/include/wlr/render/wlr_renderer.h +++ b/include/wlr/render/wlr_renderer.h @@ -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. */ |