From 625c66ef75c5538f4e5820a850a84d80d6abcffb Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 26 Apr 2021 19:41:43 +0200 Subject: render/pixman: implement texture_from_buffer --- include/render/pixman.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/render/pixman.h b/include/render/pixman.h index 8967f66f..24847d1a 100644 --- a/include/render/pixman.h +++ b/include/render/pixman.h @@ -40,9 +40,12 @@ struct wlr_pixman_texture { struct wlr_pixman_renderer *renderer; struct wl_list link; // wlr_pixman_renderer.textures - void *data; pixman_image_t *image; - const struct wlr_pixel_format_info *format; + pixman_format_code_t format; + const struct wlr_pixel_format_info *format_info; + + void *data; // if created via texture_from_pixels + struct wlr_buffer *buffer; // if created via texture_from_buffer }; pixman_format_code_t get_pixman_format_from_drm(uint32_t fmt); -- cgit v1.2.3