diff options
author | Roman Gilg <subdiff@gmail.com> | 2023-12-11 17:06:04 +0100 |
---|---|---|
committer | Roman Gilg <subdiff@gmail.com> | 2023-12-11 19:47:55 +0100 |
commit | 3531007b75a173ab0bd8152efb0a982f72140acb (patch) | |
tree | 563902188816af45d4573fa530989bac7ce8129d /include | |
parent | 7ad3f4ad2d10cbcb92e291b24ca47c32af136f12 (diff) |
render/pixman: add wlr_pixman_renderer_get_buffer_image()
This is similar to wlr_pixman_texture_get_image and can be useful for
compositors to access the rendering data.
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/render/pixman.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/wlr/render/pixman.h b/include/wlr/render/pixman.h index 436ff1a7..206dd78c 100644 --- a/include/wlr/render/pixman.h +++ b/include/wlr/render/pixman.h @@ -16,6 +16,9 @@ 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_renderer_get_buffer_image( + struct wlr_renderer *wlr_renderer, struct wlr_buffer *wlr_buffer); pixman_image_t *wlr_pixman_texture_get_image(struct wlr_texture *wlr_texture); #endif |