From 4c6caa7c48d887fb4292a08f898af83d9954d571 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Thu, 30 Nov 2023 19:55:12 -0500 Subject: wlr_texture: Introduce wlr_texture_read_pixels --- include/wlr/render/interface.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/wlr/render/interface.h') 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); }; -- cgit v1.2.3