From 6832ae14aaa659929ea13057616db34536f7f724 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 3 Oct 2022 11:44:21 +0200 Subject: render: drop wlr_renderer_read_pixels() flags These are unused. --- include/wlr/render/interface.h | 2 +- include/wlr/render/wlr_renderer.h | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) (limited to 'include/wlr') diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h index 20d755f9..e347f29b 100644 --- a/include/wlr/render/interface.h +++ b/include/wlr/render/interface.h @@ -40,7 +40,7 @@ struct wlr_renderer_impl { struct wlr_renderer *renderer); uint32_t (*preferred_read_format)(struct wlr_renderer *renderer); bool (*read_pixels)(struct wlr_renderer *renderer, uint32_t fmt, - uint32_t *flags, uint32_t stride, uint32_t width, uint32_t height, + 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); void (*destroy)(struct wlr_renderer *renderer); diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h index 50ba6b21..e240897d 100644 --- a/include/wlr/render/wlr_renderer.h +++ b/include/wlr/render/wlr_renderer.h @@ -14,10 +14,6 @@ #include #include -enum wlr_renderer_read_pixels_flags { - WLR_RENDERER_READ_PIXELS_Y_INVERT = 1, -}; - struct wlr_renderer_impl; struct wlr_drm_format_set; struct wlr_buffer; @@ -90,12 +86,9 @@ const struct wlr_drm_format_set *wlr_renderer_get_dmabuf_texture_formats( /** * Reads out of pixels of the currently bound surface into data. `stride` is in * bytes. - * - * 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, uint32_t fmt, - uint32_t *flags, uint32_t stride, uint32_t width, uint32_t height, + 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