aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/wlr/interfaces/wlr_output.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/wlr/interfaces/wlr_output.h b/include/wlr/interfaces/wlr_output.h
index a727da61..83a8c321 100644
--- a/include/wlr/interfaces/wlr_output.h
+++ b/include/wlr/interfaces/wlr_output.h
@@ -15,6 +15,16 @@
#include <wlr/types/wlr_output.h>
/**
+ * Output state fields that don't require backend support. Backends can ignore
+ * them without breaking the API contract.
+ */
+#define WLR_OUTPUT_STATE_BACKEND_OPTIONAL \
+ (WLR_OUTPUT_STATE_DAMAGE | \
+ WLR_OUTPUT_STATE_SCALE | \
+ WLR_OUTPUT_STATE_TRANSFORM | \
+ WLR_OUTPUT_STATE_ADAPTIVE_SYNC_ENABLED)
+
+/**
* A backend implementation of wlr_output.
*
* The commit function is mandatory. Other functions are optional.