aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-06-08 09:39:24 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2021-07-12 13:29:03 -0400
commit87e8c60fafb50750e03fad118fcc7c80f70b72e2 (patch)
tree79b06ca793742dd625e05955988454d46ad73427 /include
parent28aa803916f37a3ffdc514ce4564a8ceb7763409 (diff)
output: add generic wlr_output_export_dmabuf implementation
When wlr_output manages its own swap-chain, there's no need to hook into the backend to grab DMA-BUFs. Instead, maintain a wlr_output.front_buffer field with the latest committed buffer.
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_output.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h
index bab6d4ed..f42e2061 100644
--- a/include/wlr/types/wlr_output.h
+++ b/include/wlr/types/wlr_output.h
@@ -186,7 +186,7 @@ struct wlr_output {
int software_cursor_locks; // number of locks forcing software cursors
struct wlr_swapchain *swapchain;
- struct wlr_buffer *back_buffer;
+ struct wlr_buffer *back_buffer, *front_buffer;
struct wl_listener display_destroy;