render: rename wlr_renderer_get_dmabuf_formats

Rename wlr_renderer_get_dmabuf_formats to
wlr_renderer_get_dmabuf_texture_formats. This makes it clear the formats
are only suitable for creating wlr_textures.
This commit is contained in:
Simon Ser 2020-11-18 14:53:13 +01:00
parent c045253927
commit 49115e9d5d
7 changed files with 23 additions and 19 deletions

View file

@ -165,12 +165,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);
}
const struct wlr_drm_format_set *wlr_renderer_get_dmabuf_formats(
const struct wlr_drm_format_set *wlr_renderer_get_dmabuf_texture_formats(
struct wlr_renderer *r) {
if (!r->impl->get_dmabuf_formats) {
if (!r->impl->get_dmabuf_texture_formats) {
return NULL;
}
return r->impl->get_dmabuf_formats(r);
return r->impl->get_dmabuf_texture_formats(r);
}
const struct wlr_drm_format_set *wlr_renderer_get_dmabuf_render_formats(