From dc17ecd2365eaf9b5cb8f0193cdcb3991e788b4e Mon Sep 17 00:00:00 2001 From: zccrs Date: Fri, 28 May 2021 14:15:40 +0800 Subject: render/pixman: add wlr_*_is_pixman and wlr_pixman_texture_get_image Add the following functions: - wlr_renderer_is_pixman - wlr_texture_is_pixman - wlr_pixman_texture_get_image --- include/wlr/render/pixman.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/render/pixman.h b/include/wlr/render/pixman.h index 713e431d..f417efa2 100644 --- a/include/wlr/render/pixman.h +++ b/include/wlr/render/pixman.h @@ -9,9 +9,14 @@ #ifndef WLR_RENDER_PIXMAN_H #define WLR_RENDER_PIXMAN_H +#include #include #include struct wlr_renderer *wlr_pixman_renderer_create(void); +bool wlr_renderer_is_pixman(struct wlr_renderer *wlr_renderer); +bool wlr_texture_is_pixman(struct wlr_texture *texture); +pixman_image_t *wlr_pixman_texture_get_image(struct wlr_texture *wlr_texture); + #endif -- cgit v1.2.3