[weston,06/13] compositor: Store the stereoscopy layout of an output.

Submitted by Emmanuel Gil Peyrot on Nov. 14, 2017, 3:05 p.m.

Details

Message ID 20171114150600.1763-7-linkmauve@linkmauve.fr
State New
Headers show
Series "Add stereoscopy support" ( rev: 1 ) in Wayland

Not browsing as part of any series.

Commit Message

Emmanuel Gil Peyrot Nov. 14, 2017, 3:05 p.m.
From: Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com>

Backends are responsible for setting it to the expected value, as
specified in wp_stereoscopy.

Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
---
 libweston/compositor.c | 1 +
 libweston/compositor.h | 1 +
 2 files changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/libweston/compositor.c b/libweston/compositor.c
index a2f624f6..9343bdbf 100644
--- a/libweston/compositor.c
+++ b/libweston/compositor.c
@@ -4791,6 +4791,7 @@  weston_output_init(struct weston_output *output,
 	output->mm_width = 0;
 	output->mm_height = 0;
 	output->scale = 0;
+	output->stereoscopy_layout = ZWP_STEREOSCOPY_V1_LAYOUT_NONE;
 	/* Can't use -1 on uint32_t and 0 is valid enum value */
 	output->transform = UINT32_MAX;
 
diff --git a/libweston/compositor.h b/libweston/compositor.h
index 6d3fa315..165f257c 100644
--- a/libweston/compositor.h
+++ b/libweston/compositor.h
@@ -235,6 +235,7 @@  struct weston_output {
 
 	bool enabled; /**< is in the output_list, not pending list */
 	int scale;
+	uint32_t stereoscopy_layout;
 
 	int (*enable)(struct weston_output *output);
 	int (*disable)(struct weston_output *output);