From c88c54fb385a9fe29f79db2ece3e8ebba0edd0a3 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 28 Jul 2020 16:56:18 +0200 Subject: render: introduce wlr_renderer_bind_buffer --- include/wlr/render/interface.h | 2 ++ include/wlr/render/wlr_renderer.h | 1 + 2 files changed, 3 insertions(+) (limited to 'include/wlr/render') diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h index 998b1cfa..1b57c660 100644 --- a/include/wlr/render/interface.h +++ b/include/wlr/render/interface.h @@ -30,6 +30,8 @@ #include struct wlr_renderer_impl { + bool (*bind_buffer)(struct wlr_renderer *renderer, + struct wlr_buffer *buffer); void (*begin)(struct wlr_renderer *renderer, uint32_t width, uint32_t height); void (*end)(struct wlr_renderer *renderer); diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h index 363a12e4..8908d3ce 100644 --- a/include/wlr/render/wlr_renderer.h +++ b/include/wlr/render/wlr_renderer.h @@ -21,6 +21,7 @@ enum wlr_renderer_read_pixels_flags { struct wlr_renderer_impl; struct wlr_drm_format_set; +struct wlr_buffer; struct wlr_renderer { const struct wlr_renderer_impl *impl; -- cgit v1.2.3