[PATCH weston v2 15/16] pixman-renderer: implement source clipping

Bill Spitzak spitzak at gmail.com
Tue Mar 10 12:39:58 PDT 2015


Using the new pixman_image_t may be equivalent (I should check) but if 
there is some speed problem it should be possible to get an arbitrary 
subrectangle by making a new pixman_image_t directly from the buffer by 
setting the stride to the full buffer stride and setting the origin and 
the width and height to the subrectangle.

On 03/10/2015 06:01 AM, Pekka Paalanen wrote:

> This patch implements source clipping by taking each rectangle of the
> source clip region, wrapping that sub-rect of the source image in a new
> pixman_image_t, and compositing it separately. This might be very heavy as
> we are painting the whole damage the number of rectangles times, but
> practically always the number of rectangles is one.


More information about the wayland-devel mailing list