diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-08 11:21:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-08 11:21:21 -0400 |
commit | bef5c1fd56a386745e76346ed2d9df5ba3baa40c (patch) | |
tree | 6df49a5ce9dc6c66a784e68ea1c3232035570437 /render/wlr_renderer.c | |
parent | 5f48c7fddd6a28b529eb02ca156db577b76edfb6 (diff) | |
parent | d2ebbd103cda11b36fa44aa801128b2e477d465b (diff) |
Merge pull request #850 from emersion/remove-backend-egl
backend: remove wlr_backend_get_egl
Diffstat (limited to 'render/wlr_renderer.c')
-rw-r--r-- | render/wlr_renderer.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c index e33c2bed..80649b8c 100644 --- a/render/wlr_renderer.c +++ b/render/wlr_renderer.c @@ -112,6 +112,30 @@ void wlr_renderer_wl_drm_buffer_get_size(struct wlr_renderer *r, return r->impl->wl_drm_buffer_get_size(r, buffer, width, height); } +int wlr_renderer_get_dmabuf_formats(struct wlr_renderer *r, + int **formats) { + if (!r->impl->get_dmabuf_formats) { + return -1; + } + return r->impl->get_dmabuf_formats(r, formats); +} + +int wlr_renderer_get_dmabuf_modifiers(struct wlr_renderer *r, int format, + uint64_t **modifiers) { + if (!r->impl->get_dmabuf_modifiers) { + return -1; + } + return r->impl->get_dmabuf_modifiers(r, format, modifiers); +} + +bool wlr_renderer_check_import_dmabuf(struct wlr_renderer *r, + struct wlr_dmabuf_buffer *dmabuf) { + if (!r->impl->check_import_dmabuf) { + return false; + } + return r->impl->check_import_dmabuf(r, dmabuf); +} + bool wlr_renderer_read_pixels(struct wlr_renderer *r, enum wl_shm_format fmt, 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, |