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. --- render/gles2/renderer.c | 6 +----- render/pixman/renderer.c | 2 +- render/vulkan/renderer.c | 2 +- render/wlr_renderer.c | 4 ++-- 4 files changed, 5 insertions(+), 9 deletions(-) (limited to 'render') diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index c00a7f51..354584e5 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -415,7 +415,7 @@ static uint32_t gles2_preferred_read_format( } static bool gles2_read_pixels(struct wlr_renderer *wlr_renderer, - uint32_t drm_format, uint32_t *flags, uint32_t stride, + uint32_t drm_format, 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) { struct wlr_gles2_renderer *renderer = @@ -464,10 +464,6 @@ static bool gles2_read_pixels(struct wlr_renderer *wlr_renderer, pop_gles2_debug(renderer); - if (flags != NULL) { - *flags = 0; - } - return glGetError() == GL_NO_ERROR; } diff --git a/render/pixman/renderer.c b/render/pixman/renderer.c index d4833f29..d7ed3eae 100644 --- a/render/pixman/renderer.c +++ b/render/pixman/renderer.c @@ -457,7 +457,7 @@ static uint32_t pixman_preferred_read_format( } static bool pixman_read_pixels(struct wlr_renderer *wlr_renderer, - uint32_t drm_format, uint32_t *flags, uint32_t stride, + uint32_t drm_format, 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) { struct wlr_pixman_renderer *renderer = get_renderer(wlr_renderer); diff --git a/render/vulkan/renderer.c b/render/vulkan/renderer.c index 4d134877..b978ad46 100644 --- a/render/vulkan/renderer.c +++ b/render/vulkan/renderer.c @@ -970,7 +970,7 @@ static void vulkan_destroy(struct wlr_renderer *wlr_renderer) { } static bool vulkan_read_pixels(struct wlr_renderer *wlr_renderer, - uint32_t drm_format, uint32_t *flags, uint32_t stride, + uint32_t drm_format, 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) { // TODO: implement! diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c index 55a5d989..2d6481f0 100644 --- a/render/wlr_renderer.c +++ b/render/wlr_renderer.c @@ -194,13 +194,13 @@ uint32_t renderer_get_render_buffer_caps(struct wlr_renderer *r) { } 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) { if (!r->impl->read_pixels) { return false; } - return r->impl->read_pixels(r, fmt, flags, stride, width, height, + return r->impl->read_pixels(r, fmt, stride, width, height, src_x, src_y, dst_x, dst_y, data); } -- cgit v1.2.3