aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-11-18 13:58:58 +0100
committerSimon Ser <contact@emersion.fr>2020-11-30 11:08:44 +0100
commit61612ecb3688431b85a55d046a49b3700826990d (patch)
treeb9d365e5671e35824843c7172f322fc30a36806e /include
parentc15ca3793e35ae1cf755dd04d06f6c504b484350 (diff)
render: remove wlr_renderer_format_supported
Instead, callers can just use wlr_renderer_get_formats and iterate over the list. This function was unused in wlroots.
Diffstat (limited to 'include')
-rw-r--r--include/wlr/render/interface.h2
-rw-r--r--include/wlr/render/wlr_renderer.h5
2 files changed, 0 insertions, 7 deletions
diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h
index 70e954f8..625ab198 100644
--- a/include/wlr/render/interface.h
+++ b/include/wlr/render/interface.h
@@ -46,8 +46,6 @@ struct wlr_renderer_impl {
const float color[static 4], const float matrix[static 9]);
const enum wl_shm_format *(*formats)(
struct wlr_renderer *renderer, size_t *len);
- bool (*format_supported)(struct wlr_renderer *renderer,
- enum wl_shm_format fmt);
bool (*resource_is_wl_drm_buffer)(struct wlr_renderer *renderer,
struct wl_resource *resource);
void (*wl_drm_buffer_get_size)(struct wlr_renderer *renderer,
diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h
index 1de69e16..c992ded5 100644
--- a/include/wlr/render/wlr_renderer.h
+++ b/include/wlr/render/wlr_renderer.h
@@ -121,11 +121,6 @@ bool wlr_renderer_read_pixels(struct wlr_renderer *r, enum wl_shm_format fmt,
bool wlr_renderer_blit_dmabuf(struct wlr_renderer *r,
struct wlr_dmabuf_attributes *dst, struct wlr_dmabuf_attributes *src);
/**
- * Checks if a format is supported.
- */
-bool wlr_renderer_format_supported(struct wlr_renderer *r,
- enum wl_shm_format fmt);
-/**
* Creates necessary shm and invokes the initialization of the implementation.
*
* Returns false on failure.