[PATCH weston 0/4] View clipping

Pekka Paalanen ppaalanen at gmail.com
Mon Mar 2 07:15:57 PST 2015


From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

Hi,

this is the initial series for view clipping. See the commit "compositor: add
weston_view_set_mask() API and state" for an explanation of what this new
feature is. This feature is written for ivi-shell to use in the future.

For now, only gl-renderer impements view clipping. I have tried a couple ways
already to implement it on pixman-renderer, but it seems there is no easy way
as I can see, so it will take more time.  I have also asked about it on the
Pixman mailing list.

Testing this is a bit of a hassle. I have a branch with hacks that allow to
trigger view clipping:
http://cgit.collabora.com/git/user/pq/weston.git/log/?h=viewclip-4

You can test clipping under ivi-shell when you run that branch and
start toytoolkit apps with IVI_ID=555 environment variable.

That branch contains the patch "WIP ivi-shell: require
WESTON_CAP_VIEW_CLIP_MASK" which is intended to be squashed into patches for
ivi-shell that start using the new API. There is also a patch for Pixman
implementation, but unfortunately the renderer cannot deal with source clips
yet.


Pekka Paalanen (4):
  compositor: restructure weston_compositor_pick_view()
  compositor: add weston_view_set_mask() API and state
  compositor-drm: avoid scissor in assign_planes
  gl-renderer: implement view scissor

 src/compositor-drm.c |   5 ++
 src/compositor.c     | 193 ++++++++++++++++++++++++++++++++++++++++++++++-----
 src/compositor.h     |  14 ++++
 src/gl-renderer.c    |  22 +++++-
 4 files changed, 212 insertions(+), 22 deletions(-)

-- 
2.0.5



More information about the wayland-devel mailing list