mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-19 06:59:48 -05:00
output, backend/drm: add wlr_output_export_dmabuf
This commit is contained in:
parent
e1f56538a8
commit
9e26808c28
6 changed files with 51 additions and 10 deletions
|
|
@ -560,6 +560,14 @@ uint32_t wlr_output_get_gamma_size(struct wlr_output *output) {
|
|||
return output->impl->get_gamma_size(output);
|
||||
}
|
||||
|
||||
bool wlr_output_export_dmabuf(struct wlr_output *output,
|
||||
struct wlr_dmabuf_buffer_attribs *attribs) {
|
||||
if (!output->impl->export_dmabuf) {
|
||||
return false;
|
||||
}
|
||||
return output->impl->export_dmabuf(output, attribs);
|
||||
}
|
||||
|
||||
void wlr_output_update_needs_swap(struct wlr_output *output) {
|
||||
output->needs_swap = true;
|
||||
wlr_signal_emit_safe(&output->events.needs_swap, output);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue