aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render/interface.h
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-11-30 19:55:12 -0500
committerAlexander Orzechowski <alex@ozal.ski>2023-11-30 19:55:12 -0500
commit4c6caa7c48d887fb4292a08f898af83d9954d571 (patch)
tree52aef9a12546f680183f3cf25015c9c2104253f6 /include/wlr/render/interface.h
parenta165261f7f099475547b54bafd78a4465728a5cd (diff)
wlr_texture: Introduce wlr_texture_read_pixels
Diffstat (limited to 'include/wlr/render/interface.h')
-rw-r--r--include/wlr/render/interface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h
index e8191ac2..e9159b79 100644
--- a/include/wlr/render/interface.h
+++ b/include/wlr/render/interface.h
@@ -52,6 +52,8 @@ void wlr_renderer_init(struct wlr_renderer *renderer,
struct wlr_texture_impl {
bool (*update_from_buffer)(struct wlr_texture *texture,
struct wlr_buffer *buffer, const pixman_region32_t *damage);
+ bool (*read_pixels)(struct wlr_texture *texture,
+ const struct wlr_texture_read_pixels_options *options);
void (*destroy)(struct wlr_texture *texture);
};