aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render/wlr_renderer.h
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 /include/wlr/render/wlr_renderer.h
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 'include/wlr/render/wlr_renderer.h')
-rw-r--r--include/wlr/render/wlr_renderer.h4
1 files changed, 2 insertions, 2 deletions
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.
*/