aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-10-03 11:44:21 +0200
committerSimon Ser <contact@emersion.fr>2022-10-04 09:15:19 +0200
commit6832ae14aaa659929ea13057616db34536f7f724 (patch)
tree0cf919203e2e27e4965dd851b3e9c97ee42e4c3e /include/wlr/render
parent50cc1ef4d3791d86854dd83c15fff17e5ea1a5b6 (diff)
render: drop wlr_renderer_read_pixels() flags
These are unused.
Diffstat (limited to 'include/wlr/render')
-rw-r--r--include/wlr/render/interface.h2
-rw-r--r--include/wlr/render/wlr_renderer.h9
2 files changed, 2 insertions, 9 deletions
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 <wlr/backend.h>
#include <wlr/render/wlr_texture.h>
-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);
/**