ivi-layout: implement surface clipping
authorNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Mon, 24 Aug 2015 01:24:15 +0000 (10:24 +0900)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 26 Aug 2015 08:12:49 +0000 (11:12 +0300)
commitacbcc6c9788226fca601155123dbfdcd96f0ccee
tree82a3717c3437f46043be2f1204c2cf1bf6e961f3
parentab81f1515a5ede0936166d0051208f7618c2aa9e
ivi-layout: implement surface clipping

View clip region is set in surface-local coordinates. To compute that
region, the ivi-layer destination rectangle in the global coordinates
are transformed back into the surface-local coordinates.

The transformation is computed by first forming the transformation
matric for the forward mappings, and then inverting it. The inverse
matric is used to transform the destination rectangles to the
surface-local coordinate system. The intersection of the rectangles is
the view clip mask.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
ivi-shell/ivi-layout.c