aboutsummaryrefslogtreecommitdiff
path: root/render/pixman
diff options
context:
space:
mode:
Diffstat (limited to 'render/pixman')
-rw-r--r--render/pixman/renderer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/render/pixman/renderer.c b/render/pixman/renderer.c
index 56960fc2..f1c1a3d5 100644
--- a/render/pixman/renderer.c
+++ b/render/pixman/renderer.c
@@ -567,3 +567,10 @@ pixman_image_t *wlr_pixman_texture_get_image(struct wlr_texture *wlr_texture) {
struct wlr_pixman_texture *texture = get_texture(wlr_texture);
return texture->image;
}
+
+pixman_image_t *wlr_pixman_renderer_get_current_image(
+ struct wlr_renderer *wlr_renderer) {
+ struct wlr_pixman_renderer *renderer = get_renderer(wlr_renderer);
+ assert(renderer->current_buffer);
+ return renderer->current_buffer->image;
+}