aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-10-08 02:11:56 +0200
committeremersion <contact@emersion.fr>2017-10-08 02:11:56 +0200
commit0ce313530446b801302850f03c4a8d8c20cfd782 (patch)
treecc0779ca8ef0000fb3e357fb1ac9c96bf2bed51e /include/wlr/render
parent55c063f440fd12b1ee8bba5cef56a75c33e66719 (diff)
Move read_pixels from output to renderer
Diffstat (limited to 'include/wlr/render')
-rw-r--r--include/wlr/render/interface.h2
1 files changed, 2 insertions, 0 deletions
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);
};