libweston: move wl_output to weston_head
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 27 Mar 2017 09:15:38 +0000 (12:15 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 10 Apr 2018 11:33:59 +0000 (14:33 +0300)
commit1b9bf598a57aa60115ecaba6ee547db80927c9bb
treef39c030cc9a911d03f0729635bf752b618952b51
parent01f60211b2ff3d12bd8bc6a008ba07c30a666760
libweston: move wl_output to weston_head

The wl_output protocol interface exposes things like monitor make,
model, sub-pixel layout and physical dimensions. Obviously wl_output is
meant to represent a monitor.

The abstraction of a monitor is weston_head. Therefore move the wl_output
global and the bound resources list into weston_head.

When clone mode gets implemented in the future, this means that monitors
driven by the same CRTC will still be represented as separate wl_output
globals. This allows to accurately represent the hardware.

Clone mode that used separate, not frame-locked, CRTCs to drive two
monitors as clones would necessarily also be exposed as separate
wl_output since they have different timings.

v6:
- adapt to upstream changes in weston_output_set_transform()

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
v5 Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Ian Ray <ian.ray@ge.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Acked-by: Derek Foreman <derekf@osg.samsung.com>
libweston/compositor.c
libweston/compositor.h