[cairo] Clip region problems

Carl Worth cworth at redhat.com
Mon May 2 13:28:46 PDT 2005


On Wed, 27 Apr 2005 19:30:06 -0400, Owen Taylor wrote:
> > [...] So perhaps a less restrictive version is to require creation
> > and use of cairo_t's for one cairo-surface to be nested. This can
> > be implemented with a simple stack of saved clip regions.
> 
> Here's an implementation of that.

This looks pretty good.

As we discussed in IRC, there's that very little bit of documentation
about the nesting constraint still needed.

The current patch isn't my favorite style, but fixing it will probably
require copy-on-write pixman_region support and if we had that, then
we'd have a complete solution to the original clip region problem,
(for which this patch is intended to be an intermediate step).

So, please commit.

-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050502/97c67272/attachment.pgp


More information about the cairo mailing list