mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
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.
This commit is contained in:
parent
c15ca3793e
commit
61612ecb36
4 changed files with 0 additions and 19 deletions
|
|
@ -18,7 +18,6 @@ void wlr_renderer_init(struct wlr_renderer *renderer,
|
|||
assert(impl->render_quad_with_matrix);
|
||||
assert(impl->render_ellipse_with_matrix);
|
||||
assert(impl->formats);
|
||||
assert(impl->format_supported);
|
||||
assert(impl->texture_from_pixels);
|
||||
renderer->impl = impl;
|
||||
|
||||
|
|
@ -195,11 +194,6 @@ bool wlr_renderer_blit_dmabuf(struct wlr_renderer *r,
|
|||
return r->impl->blit_dmabuf(r, dst, src);
|
||||
}
|
||||
|
||||
bool wlr_renderer_format_supported(struct wlr_renderer *r,
|
||||
enum wl_shm_format fmt) {
|
||||
return r->impl->format_supported(r, fmt);
|
||||
}
|
||||
|
||||
bool wlr_renderer_init_wl_display(struct wlr_renderer *r,
|
||||
struct wl_display *wl_display) {
|
||||
if (wl_display_init_shm(wl_display)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue