From c94ab99ae26f4d5459b061bfb8ac17261afdc6a7 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 18 Nov 2020 14:57:53 +0100 Subject: 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. --- include/wlr/render/interface.h | 2 +- include/wlr/render/wlr_renderer.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h index 0b364995..3ce91d32 100644 --- a/include/wlr/render/interface.h +++ b/include/wlr/render/interface.h @@ -44,7 +44,7 @@ struct wlr_renderer_impl { const float color[static 4], const float matrix[static 9]); void (*render_ellipse_with_matrix)(struct wlr_renderer *renderer, const float color[static 4], const float matrix[static 9]); - const enum wl_shm_format *(*formats)( + const enum wl_shm_format *(*get_shm_texture_formats)( struct wlr_renderer *renderer, size_t *len); bool (*resource_is_wl_drm_buffer)(struct wlr_renderer *renderer, struct wl_resource *resource); diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h index 6c6853ca..fecc1a13 100644 --- a/include/wlr/render/wlr_renderer.h +++ b/include/wlr/render/wlr_renderer.h @@ -86,8 +86,8 @@ void wlr_render_ellipse_with_matrix(struct wlr_renderer *r, * Get the shared-memory formats supporting import usage. Buffers allocated * with a format from this list may be imported via wlr_texture_from_pixels. */ -const enum wl_shm_format *wlr_renderer_get_formats(struct wlr_renderer *r, - size_t *len); +const enum wl_shm_format *wlr_renderer_get_shm_texture_formats( + struct wlr_renderer *r, size_t *len); /** * Returns true if this wl_buffer is a wl_drm buffer. */ -- cgit v1.2.3