From 6830bfc17fd94709e2cdd4da0af989f102a26e59 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 7 Dec 2022 14:30:23 +0100 Subject: render/pixman: implement render pass API --- include/render/pixman.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'include/render') diff --git a/include/render/pixman.h b/include/render/pixman.h index 417964f2..24a27055 100644 --- a/include/render/pixman.h +++ b/include/render/pixman.h @@ -1,9 +1,10 @@ #ifndef RENDER_PIXMAN_H #define RENDER_PIXMAN_H +#include +#include #include #include -#include #include "render/pixel_format.h" struct wlr_pixman_pixel_format { @@ -48,6 +49,11 @@ struct wlr_pixman_texture { struct wlr_buffer *buffer; // if created via texture_from_buffer }; +struct wlr_pixman_render_pass { + struct wlr_render_pass base; + struct wlr_pixman_buffer *buffer; +}; + pixman_format_code_t get_pixman_format_from_drm(uint32_t fmt); uint32_t get_drm_format_from_pixman(pixman_format_code_t fmt); const uint32_t *get_pixman_drm_formats(size_t *len); @@ -55,4 +61,7 @@ const uint32_t *get_pixman_drm_formats(size_t *len); bool begin_pixman_data_ptr_access(struct wlr_buffer *buffer, pixman_image_t **image_ptr, uint32_t flags); +struct wlr_pixman_render_pass *begin_pixman_render_pass( + struct wlr_pixman_buffer *buffer); + #endif -- cgit v1.2.3