output: drop wlr_output_export_dmabuf

Callers can access output->front_buffer instead.
This commit is contained in:
Simon Ser 2021-11-05 12:49:32 +01:00
parent fa77aeb80e
commit 76bab68e70
2 changed files with 0 additions and 21 deletions

View File

@ -14,7 +14,6 @@
#include <time.h>
#include <wayland-server-protocol.h>
#include <wayland-util.h>
#include <wlr/render/dmabuf.h>
#include <wlr/types/wlr_buffer.h>
#include <wlr/util/addon.h>
@ -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

View File

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