diff options
author | Simon Ser <contact@emersion.fr> | 2021-07-12 18:37:40 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-07-12 13:29:03 -0400 |
commit | bcd5d8504c4370134d5fb3c1c324fcab49fecbb8 (patch) | |
tree | b3f237107debc6e4b7bb26904ef07db4dbff96f1 | |
parent | 709190c4c8072c929c06addce9d305882f124e6f (diff) |
output: remove wlr_output_impl.export_dmabuf
No backend is using it anymore.
-rw-r--r-- | include/wlr/interfaces/wlr_output.h | 5 | ||||
-rw-r--r-- | types/wlr_export_dmabuf_v1.c | 2 | ||||
-rw-r--r-- | types/wlr_output.c | 4 |
3 files changed, 1 insertions, 10 deletions
diff --git a/include/wlr/interfaces/wlr_output.h b/include/wlr/interfaces/wlr_output.h index 83d1b58a..376e0875 100644 --- a/include/wlr/interfaces/wlr_output.h +++ b/include/wlr/interfaces/wlr_output.h @@ -84,11 +84,6 @@ struct wlr_output_impl { */ size_t (*get_gamma_size)(struct wlr_output *output); /** - * Export the output's current back-buffer as a DMA-BUF. - */ - bool (*export_dmabuf)(struct wlr_output *output, - struct wlr_dmabuf_attributes *attribs); - /** * Get the list of formats suitable for the cursor, assuming a buffer with * the specified capabilities. * diff --git a/types/wlr_export_dmabuf_v1.c b/types/wlr_export_dmabuf_v1.c index a8e2a4bd..c3108062 100644 --- a/types/wlr_export_dmabuf_v1.c +++ b/types/wlr_export_dmabuf_v1.c @@ -135,7 +135,7 @@ static void manager_handle_capture_output(struct wl_client *client, wl_list_insert(&manager->frames, &frame->link); - if (output == NULL || !output->enabled || !output->impl->export_dmabuf) { + if (output == NULL || !output->enabled) { zwlr_export_dmabuf_frame_v1_send_cancel(frame->resource, ZWLR_EXPORT_DMABUF_FRAME_V1_CANCEL_REASON_PERMANENT); frame_destroy(frame); diff --git a/types/wlr_output.c b/types/wlr_output.c index 5eb5c05d..4b3cabf7 100644 --- a/types/wlr_output.c +++ b/types/wlr_output.c @@ -926,10 +926,6 @@ size_t wlr_output_get_gamma_size(struct wlr_output *output) { bool wlr_output_export_dmabuf(struct wlr_output *output, struct wlr_dmabuf_attributes *attribs) { - if (output->impl->export_dmabuf) { - return output->impl->export_dmabuf(output, attribs); - } - if (output->front_buffer == NULL) { return false; } |