diff options
author | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-04-15 10:22:06 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-04-15 17:10:06 +0200 |
commit | 84dea55b20b60c229a5e31ccd37b58c96cba611a (patch) | |
tree | b1b5aa818919249dd4e703027052a68c797750a1 /render | |
parent | 004cf887b70aace0e13db8e38a2c3d4df55852b3 (diff) |
render: rename get_dmabuf_render_formats into get_render_formats
Diffstat (limited to 'render')
-rw-r--r-- | render/gles2/renderer.c | 4 | ||||
-rw-r--r-- | render/wlr_renderer.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index ed7ed8c4..5f1dfa4a 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -395,7 +395,7 @@ static const struct wlr_drm_format_set *gles2_get_dmabuf_texture_formats( return wlr_egl_get_dmabuf_texture_formats(renderer->egl); } -static const struct wlr_drm_format_set *gles2_get_dmabuf_render_formats( +static const struct wlr_drm_format_set *gles2_get_render_formats( struct wlr_renderer *wlr_renderer) { struct wlr_gles2_renderer *renderer = gles2_get_renderer(wlr_renderer); return wlr_egl_get_dmabuf_render_formats(renderer->egl); @@ -576,7 +576,7 @@ static const struct wlr_renderer_impl renderer_impl = { .resource_is_wl_drm_buffer = gles2_resource_is_wl_drm_buffer, .wl_drm_buffer_get_size = gles2_wl_drm_buffer_get_size, .get_dmabuf_texture_formats = gles2_get_dmabuf_texture_formats, - .get_dmabuf_render_formats = gles2_get_dmabuf_render_formats, + .get_render_formats = gles2_get_render_formats, .preferred_read_format = gles2_preferred_read_format, .read_pixels = gles2_read_pixels, .texture_from_pixels = gles2_texture_from_pixels, diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c index 7b1bc89a..ac7629e4 100644 --- a/render/wlr_renderer.c +++ b/render/wlr_renderer.c @@ -160,12 +160,12 @@ const struct wlr_drm_format_set *wlr_renderer_get_dmabuf_texture_formats( return r->impl->get_dmabuf_texture_formats(r); } -const struct wlr_drm_format_set *wlr_renderer_get_dmabuf_render_formats( +const struct wlr_drm_format_set *wlr_renderer_get_render_formats( struct wlr_renderer *r) { - if (!r->impl->get_dmabuf_render_formats) { + if (!r->impl->get_render_formats) { return NULL; } - return r->impl->get_dmabuf_render_formats(r); + return r->impl->get_render_formats(r); } bool wlr_renderer_read_pixels(struct wlr_renderer *r, uint32_t fmt, |