aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-04-29 23:25:47 +0300
committerDrew DeVault <sir@cmpwn.com>2019-06-07 09:06:11 -0400
commitafe7b207d5ff630d85c0d428ab7234f6740cfc0c (patch)
treec71798557c95174d83839fc9062298c68b219da3 /include/wlr
parent1d222309b8ad929d01746689b30c2c78cdc12142 (diff)
output: fix attach_buffer semantics
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_output.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h
index ffe13fb8..cd05cfb4 100644
--- a/include/wlr/types/wlr_output.h
+++ b/include/wlr/types/wlr_output.h
@@ -52,12 +52,21 @@ enum wlr_output_state_field {
WLR_OUTPUT_STATE_DAMAGE = 1 << 1,
};
+enum wlr_output_state_buffer_type {
+ WLR_OUTPUT_STATE_BUFFER_RENDER,
+ WLR_OUTPUT_STATE_BUFFER_SCANOUT,
+};
+
/**
* Holds the double-buffered output state.
*/
struct wlr_output_state {
uint32_t committed; // enum wlr_output_state_field
pixman_region32_t damage; // output-buffer-local coordinates
+
+ // only valid if WLR_OUTPUT_STATE_BUFFER
+ enum wlr_output_state_buffer_type buffer_type;
+ struct wlr_buffer *buffer; // if WLR_OUTPUT_STATE_BUFFER_SCANOUT
};
struct wlr_output_impl;