render: remove wlr_texture_to_dmabuf

This is unused in wlroots, and the use-cases for compositors are
pretty niche since they can access the original DMA-BUF via the
wlr_buffer.
This commit is contained in:
Simon Ser 2021-03-25 21:07:58 +01:00
parent 1cdef8da57
commit 9ecfa4343a
6 changed files with 0 additions and 84 deletions

View file

@ -65,11 +65,3 @@ bool wlr_texture_write_pixels(struct wlr_texture *texture,
return texture->impl->write_pixels(texture, stride, width, height,
src_x, src_y, dst_x, dst_y, data);
}
bool wlr_texture_to_dmabuf(struct wlr_texture *texture,
struct wlr_dmabuf_attributes *attribs) {
if (!texture->impl->to_dmabuf) {
return false;
}
return texture->impl->to_dmabuf(texture, attribs);
}