diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 6c07372b..17f48311 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -14,7 +14,6 @@ #include #include #include -#include #include #include @@ -401,13 +400,6 @@ size_t wlr_output_get_gamma_size(struct wlr_output *output); */ void wlr_output_set_gamma(struct wlr_output *output, size_t size, const uint16_t *r, const uint16_t *g, const uint16_t *b); -/** - * Exports the last committed buffer as a DMA-BUF. - * - * The caller is responsible for cleaning up the DMA-BUF attributes. - */ -bool wlr_output_export_dmabuf(struct wlr_output *output, - struct wlr_dmabuf_attributes *attribs); /** * Returns the wlr_output matching the provided wl_output resource. If the * resource isn't a wl_output, it aborts. If the resource is inert (because the diff --git a/types/output/output.c b/types/output/output.c index 6dc09d3a..4e3f403f 100644 --- a/types/output/output.c +++ b/types/output/output.c @@ -790,19 +790,6 @@ size_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_attributes *attribs) { - if (output->front_buffer == NULL) { - return false; - } - - struct wlr_dmabuf_attributes buf_attribs = {0}; - if (!wlr_buffer_get_dmabuf(output->front_buffer, &buf_attribs)) { - return false; - } - return wlr_dmabuf_attributes_copy(attribs, &buf_attribs); -} - void wlr_output_update_needs_frame(struct wlr_output *output) { if (output->needs_frame) { return;