aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorzccrs <zccrs@live.com>2021-05-28 14:15:40 +0800
committerSimon Ser <contact@emersion.fr>2021-06-19 10:04:35 +0200
commitdc17ecd2365eaf9b5cb8f0193cdcb3991e788b4e (patch)
treef2f4e7c2b2eef29e5ab65928cd1f7fd9891e35c7 /include/wlr
parentfdc40e071ed103d6bdc03fa6181dedef296b0509 (diff)
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
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/render/pixman.h5
1 files changed, 5 insertions, 0 deletions
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 <pixman.h>
#include <wlr/backend.h>
#include <wlr/render/wlr_renderer.h>
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