From 0ce313530446b801302850f03c4a8d8c20cfd782 Mon Sep 17 00:00:00 2001 From: emersion Date: Sun, 8 Oct 2017 02:11:56 +0200 Subject: Move read_pixels from output to renderer --- include/wlr/render/interface.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/wlr/render') diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h index cbe33822..bbc5acb4 100644 --- a/include/wlr/render/interface.h +++ b/include/wlr/render/interface.h @@ -28,6 +28,8 @@ struct wlr_renderer_impl { struct wlr_renderer *renderer, size_t *len); bool (*buffer_is_drm)(struct wlr_renderer *renderer, struct wl_resource *buffer); + void (*read_pixels)(struct wlr_renderer *renderer, int x, int y, int width, + int height, void *out_data); void (*destroy)(struct wlr_renderer *renderer); }; -- cgit v1.2.3