[cairo] Quartz gradients consistency
ranma42 at gmail.com
Sun Oct 10 05:48:41 PDT 2010
After some discussion with Robert O'Callahan and Benjamin Otte, I've written
down a solutions to fix quartz gradients that should not break Mozilla nor GTK.
Moreover it should make gradients consistent between all the operations
(paint, fill, stroke, show_glyphs and (NYI, but soon) mask) and independent
of clip and path extents.
For "new" surfaces the gradient extents are the surface extents, but for
surfaces created with a relation to another surface (cairo_push/pop_group,
cairo_surface_create_similar) it makes the gradient extents be the same
as the ones of the original surface (and keeps this consistency even when
the surfaces are "moved" with cairo_surface_set_device_offset).
This means that both clip+draw and push+draw+pop should work as expected.
Any suggestions on how the attached patch could be improved?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 11917 bytes
Desc: not available
More information about the cairo