summaryrefslogtreecommitdiff
path: root/src/cairo-clip-surface.c
Commit message (Collapse)AuthorAgeFilesLines
* surface: Merge scratch construction into _cairo_surface_create_scratchAlexander Larsson2013-09-051-10/+10
| | | | | | | | | | | We merge _cairo_surface_create_similar_scratch and _cairo_surface_create_similar_solid into a single function named _cairo_surface_create_scratch, to avoid confusion with cairo_surface_create_similar which now will have a different behaviour wrt the sizes and the device-scale. _create_scratch assumes the width and height are in backend coordinates, while create_similar does not.
* clip: Apply clip boxes to the clip surfaceChris Wilson2012-05-111-9/+77
| | | | | | | | | As we convert the unaligned clip boxes to a region, we need to process the intersection of the boxes with the clip surface as a separate step. Fixes tighten-box for the base compositor. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
* clip: Apply the partial boxes for clip_combine_with_surfaceChris Wilson2012-02-091-4/+6
| | | | Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
* _cairo_clip_get_surface(): Don't lose errorsUli Schlachter2011-09-181-0/+5
| | | | | | | If one of the _cairo_surface_fill() calls failed, this function would stop and return an intermediate result, thus hiding the error that happened. Signed-off-by: Uli Schlachter <psychon@znc.in>
* Introduce a new compositor architectureChris Wilson2011-09-121-8/+31
| | | | | | | | | | | | | | | | | | Having spent the last dev cycle looking at how we could specialize the compositors for various backends, we once again look for the commonalities in order to reduce the duplication. In part this is motivated by the idea that spans is a good interface for both the existent GL backend and pixman, and so they deserve a dedicated compositor. xcb/xlib target an identical rendering system and so they should be using the same compositor, and it should be possible to run that same compositor locally against pixman to generate reference tests. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> P.S. This brings massive upheaval (read breakage) I've tried delaying in order to fix as many things as possible but now this one patch does far, far, far too much. Apologies in advance for breaking your favourite backend, but trust me in that the end result will be much better. :)
* clip: Rudimentary support for clip-polygon extractionChris Wilson2011-07-191-0/+142
Step 1, fix the failings sighted recently by tracking clip-boxes as an explicit property of the clipping and of composition. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>