output, backend/drm: add wlr_output_export_dmabuf

This commit is contained in:
emersion 2018-05-21 18:50:51 +01:00
parent e1f56538a8
commit 9e26808c28
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
6 changed files with 51 additions and 10 deletions

View file

@ -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);