From 982498fab3c4d0aee9b29312559cbdd317c563a1 Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Fri, 23 Apr 2021 13:51:05 -0400 Subject: render: introduce renderer_get_render_buffer_caps --- render/pixman/renderer.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'render/pixman') diff --git a/render/pixman/renderer.c b/render/pixman/renderer.c index d85c11a1..7680e171 100644 --- a/render/pixman/renderer.c +++ b/render/pixman/renderer.c @@ -403,6 +403,10 @@ static bool pixman_read_pixels(struct wlr_renderer *wlr_renderer, return true; } +static uint32_t pixman_get_render_buffer_caps(void) { + return WLR_BUFFER_CAP_DATA_PTR; +} + static const struct wlr_renderer_impl renderer_impl = { .begin = pixman_begin, .clear = pixman_clear, @@ -416,6 +420,7 @@ static const struct wlr_renderer_impl renderer_impl = { .destroy = pixman_destroy, .preferred_read_format = pixman_preferred_read_format, .read_pixels = pixman_read_pixels, + .get_render_buffer_caps = pixman_get_render_buffer_caps, }; struct wlr_renderer *wlr_pixman_renderer_create(void) { -- cgit v1.2.3