ivi-shell: multi screen support to calcuration of a mask of weston_surface.
authorNobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp>
Wed, 9 Dec 2015 06:39:26 +0000 (15:39 +0900)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 14 Dec 2015 11:16:11 +0000 (13:16 +0200)
commit1c2618e9ff58d355714bcdde61f87a6e918f3059
tree17c775bc7effe9786304cccd7a7a9d71608a1fa5
parent29babdf099fee228883ab6425811f11135296274
ivi-shell: multi screen support to calcuration of a mask of weston_surface.

A weston_surface is transformed to multi screen coordinate, global
coordinate by matrix:m now.

Additionally, a mask needs to be calucated, taking account into,
- multi screen coordination: a destination rectangle of layer in the
  coordination is easily calcurated by adding weston_output.{x,y} in
  simple. This is because there is no scaled and rotated transformation.
- intersect inside of a screen the layer is assigned to. This is because
  overlapped region of weston surface in another screen shall not be
  displayed according to ivi use case.

Signed-off-by: Nobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
ivi-shell/ivi-layout.c