render: introduce renderer_get_render_buffer_caps

This commit is contained in:
Simon Zeni 2021-04-23 13:51:05 -04:00 committed by Simon Ser
parent 144189674e
commit 982498fab3
5 changed files with 23 additions and 0 deletions

View file

@ -27,6 +27,7 @@ void wlr_renderer_init(struct wlr_renderer *renderer,
assert(impl->render_quad_with_matrix);
assert(impl->get_shm_texture_formats);
assert(impl->texture_from_pixels);
assert(impl->get_render_buffer_caps);
renderer->impl = impl;
wl_signal_init(&renderer->events.destroy);
@ -174,6 +175,10 @@ const struct wlr_drm_format_set *wlr_renderer_get_render_formats(
return r->impl->get_render_formats(r);
}
uint32_t renderer_get_render_buffer_caps(struct wlr_renderer *r) {
return r->impl->get_render_buffer_caps();
}
bool wlr_renderer_read_pixels(struct wlr_renderer *r, uint32_t fmt,
uint32_t *flags, uint32_t stride, uint32_t width, uint32_t height,
uint32_t src_x, uint32_t src_y, uint32_t dst_x, uint32_t dst_y,