From b54ef3372d5c6f01b97b26cf449617122a628e8a Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 16 Feb 2021 19:34:02 +0100 Subject: render: use DRM formats in wlr_renderer_read_pixels --- include/wlr/render/interface.h | 2 +- include/wlr/render/wlr_renderer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include/wlr/render') diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h index 1e2271e4..bf2fea40 100644 --- a/include/wlr/render/interface.h +++ b/include/wlr/render/interface.h @@ -43,7 +43,7 @@ struct wlr_renderer_impl { const struct wlr_drm_format_set *(*get_dmabuf_render_formats)( struct wlr_renderer *renderer); uint32_t (*preferred_read_format)(struct wlr_renderer *renderer); - bool (*read_pixels)(struct wlr_renderer *renderer, enum wl_shm_format fmt, + bool (*read_pixels)(struct wlr_renderer *renderer, uint32_t 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); diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h index 49e4afa0..ecee9a91 100644 --- a/include/wlr/render/wlr_renderer.h +++ b/include/wlr/render/wlr_renderer.h @@ -110,7 +110,7 @@ const struct wlr_drm_format_set *wlr_renderer_get_dmabuf_texture_formats( * If `flags` is not NULl, the caller indicates that it accepts frame flags * defined in `enum wlr_renderer_read_pixels_flags`. */ -bool wlr_renderer_read_pixels(struct wlr_renderer *r, enum wl_shm_format fmt, +bool wlr_renderer_read_pixels(struct wlr_renderer *r, uint32_t 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); -- cgit v1.2.3