diff options
author | emersion <contact@emersion.fr> | 2019-04-01 19:17:23 +0300 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-04-01 19:18:04 +0300 |
commit | e42178d03fd34f9f5fba10feabfc4b35a71edd31 (patch) | |
tree | ae0d7f444aef0af32447c189cfff7074c86d8eb7 /render/wlr_renderer.c | |
parent | c01b81c99c9e7d6418611bab4fd709c4c2a8b3d9 (diff) |
render: switch wlr_renderer to wlr_drm_format_set
Diffstat (limited to 'render/wlr_renderer.c')
-rw-r--r-- | render/wlr_renderer.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c index 58731d7f..802cbdbd 100644 --- a/render/wlr_renderer.c +++ b/render/wlr_renderer.c @@ -123,20 +123,12 @@ 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) { +const struct wlr_drm_format_set *wlr_renderer_get_dmabuf_formats( + struct wlr_renderer *r) { 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 NULL; } - return r->impl->get_dmabuf_modifiers(r, format, modifiers); + return r->impl->get_dmabuf_formats(r); } bool wlr_renderer_read_pixels(struct wlr_renderer *r, enum wl_shm_format fmt, |