wlr_texture: Introduce wlr_texture_read_pixels

This commit is contained in:
Alexander Orzechowski 2023-11-30 19:55:12 -05:00
parent a165261f7f
commit 4c6caa7c48
3 changed files with 28 additions and 0 deletions

View file

@ -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);
};