aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-06-09 11:23:18 +0200
committerDrew DeVault <sir@cmpwn.com>2020-06-09 07:12:43 -0600
commit79e03c7d456adaaa1b408b8c48a05ac051388770 (patch)
tree8ba1775b34c590b5bc711eb0bbda2a14a866d190 /include/wlr
parenta8a4a12c4beb5d61f27f73595b0e5d0ed37c297c (diff)
output: document wlr_output_export_dmabuf
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_output.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h
index 93e7ee9c..075d09a1 100644
--- a/include/wlr/types/wlr_output.h
+++ b/include/wlr/types/wlr_output.h
@@ -385,6 +385,12 @@ 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 output's current back-buffer as a DMA-BUF (ie. the buffer that
+ * will be displayed on next commit).
+ *
+ * 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);
/**