diff options
author | Simon Ser <contact@emersion.fr> | 2022-10-03 11:44:21 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-10-04 09:15:19 +0200 |
commit | 6832ae14aaa659929ea13057616db34536f7f724 (patch) | |
tree | 0cf919203e2e27e4965dd851b3e9c97ee42e4c3e /render | |
parent | 50cc1ef4d3791d86854dd83c15fff17e5ea1a5b6 (diff) |
render: drop wlr_renderer_read_pixels() flags
These are unused.
Diffstat (limited to 'render')
-rw-r--r-- | render/gles2/renderer.c | 6 | ||||
-rw-r--r-- | render/pixman/renderer.c | 2 | ||||
-rw-r--r-- | render/vulkan/renderer.c | 2 | ||||
-rw-r--r-- | render/wlr_renderer.c | 4 |
4 files changed, 5 insertions, 9 deletions
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); } |