aboutsummaryrefslogtreecommitdiff
path: root/render/gles2/renderer.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-11-18 14:57:53 +0100
committerSimon Ser <contact@emersion.fr>2020-11-30 11:08:44 +0100
commitc94ab99ae26f4d5459b061bfb8ac17261afdc6a7 (patch)
tree1f21fcef14c7b7d33d62ed3f2e74b50ad7275162 /render/gles2/renderer.c
parent49115e9d5d1c9f9c61c4f05c8e7a16191426b21e (diff)
render: rename wlr_renderer_get_formats
Rename wlr_renderer_get_formats to wlr_renderer_get_shm_texture_formats. This makes it clear those formats are only suitable for shm import.
Diffstat (limited to 'render/gles2/renderer.c')
-rw-r--r--render/gles2/renderer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c
index 28a24087..c90108fb 100644
--- a/render/gles2/renderer.c
+++ b/render/gles2/renderer.c
@@ -396,7 +396,7 @@ static void gles2_render_ellipse_with_matrix(struct wlr_renderer *wlr_renderer,
pop_gles2_debug(renderer);
}
-static const enum wl_shm_format *gles2_renderer_formats(
+static const enum wl_shm_format *gles2_get_shm_texture_formats(
struct wlr_renderer *wlr_renderer, size_t *len) {
return get_gles2_wl_formats(len);
}
@@ -705,7 +705,7 @@ static const struct wlr_renderer_impl renderer_impl = {
.render_subtexture_with_matrix = gles2_render_subtexture_with_matrix,
.render_quad_with_matrix = gles2_render_quad_with_matrix,
.render_ellipse_with_matrix = gles2_render_ellipse_with_matrix,
- .formats = gles2_renderer_formats,
+ .get_shm_texture_formats = gles2_get_shm_texture_formats,
.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,