compositor: turn weston_view boundingbox into masked
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 19 Feb 2015 09:15:33 +0000 (11:15 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 24 Feb 2015 07:45:55 +0000 (09:45 +0200)
commit25c0ca57159b35e2d98004ee1e24e7d02c017e6d
tree762732d4cc8c60a19186e97482ca3bbd4d48a035
parent8844bf2ab0795ec3c60acae24c7685fda8d36a81
compositor: turn weston_view boundingbox into masked

weston_view::transform.boundingbox is made to include the layer mask,
which removes the need for masked_boundingbox.

The following were using boundingbox when they should have used
masked_boundingbox:
- drm_output_prepare_overlay_view() uses boundingbox to compute overlay
  position, source and destination coordinates.
- drm_assign_planes() uses boundingbox for view overlap checks.
- is_view_not_visible() uses boundingbox, but nothing will show outside
  the layer mask.
- weston_surface_assign_output() intersects boundingbox with output
  region to choose the primary output for a surface.
- weston_view_assign_output() intersects boundingbox with output region
  to pick the outputs the view is on.

This patch essentially changes all those cases to use the masked
boundingbox.

Therefore there are no cases which would need the boundingbox without
the layer mask, and we can convert boundingbox into masked and remove
the left-over member.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
[v2: don't move the decl of 'mask' in weston_view_update_transform]
Reviewed-By: Giulio Camuffo <giuliocamuffo@gmail.com>
src/compositor.c
src/compositor.h
src/gl-renderer.c
src/pixman-renderer.c