aboutsummaryrefslogtreecommitdiff
path: root/render/pixman
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2021-04-23 13:51:05 -0400
committerSimon Ser <contact@emersion.fr>2021-04-28 20:55:57 +0200
commit982498fab3c4d0aee9b29312559cbdd317c563a1 (patch)
tree096ca681801764a47296a32712e17576d530beb1 /render/pixman
parent144189674edbf908d72467cd497a0250b3d80b8b (diff)
render: introduce renderer_get_render_buffer_caps
Diffstat (limited to 'render/pixman')
-rw-r--r--render/pixman/renderer.c5
1 files changed, 5 insertions, 0 deletions
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) {