diff options
author | Simon Ser <contact@emersion.fr> | 2021-04-26 19:41:43 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-06-07 09:22:56 -0400 |
commit | 625c66ef75c5538f4e5820a850a84d80d6abcffb (patch) | |
tree | 64f2c8635957e53eafa97aeb4207d48e511d8632 /include/render | |
parent | 6e43d642b2d0db5a3bd711507133abdb4da2d47c (diff) |
render/pixman: implement texture_from_buffer
Diffstat (limited to 'include/render')
-rw-r--r-- | include/render/pixman.h | 7 |
1 files changed, 5 insertions, 2 deletions
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); |