mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
render: add wlr_texture_to_dmabuf
This commit is contained in:
parent
bd430b8620
commit
5ba1a9af56
7 changed files with 92 additions and 3 deletions
|
|
@ -54,3 +54,11 @@ bool wlr_texture_write_pixels(struct wlr_texture *texture,
|
|||
return texture->impl->write_pixels(texture, wl_fmt, stride, width, height,
|
||||
src_x, src_y, dst_x, dst_y, data);
|
||||
}
|
||||
|
||||
bool wlr_texture_to_dmabuf(struct wlr_texture *texture,
|
||||
struct wlr_dmabuf_buffer_attribs *attribs) {
|
||||
if (!texture->impl->to_dmabuf) {
|
||||
return false;
|
||||
}
|
||||
return texture->impl->to_dmabuf(texture, attribs);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue