[cairo] Quartz gradients consistency

Robert O'Callahan robert at ocallahan.org
Sun Oct 10 14:55:36 PDT 2010


That's a really nice approach. However, there are still situations where we
want the rasterization of gradients to be independent of the surface
extents, even the extents of the final destination surface. For example,
when resizing the window, we do not necessarily repaint the entire window,
and we may draw using the contents of cached surfaces representing "layers"
of content in the window.

So I think we need some API to override the "virtual extents", or some other
way we can have the gradient rasterization in a fill(), stroke() or
show_glyphs() depend only on the path/glyph extents.

I also think we need to have a public discussion about exactly what
guarantees cairo should offer in this area. For example, for an interactive
application the ideal would be if cairo can promise:
1) Rasterization of pixels completely inside the clip region is independent
of the clip region.
2) Rasterization of pixels inside the surface extents is independent of the
surface extents.
but I understand that this is too restrictive on implementations as a
general rule.

Rob
-- 
"Now the Bereans were of more noble character than the Thessalonians, for
they received the message with great eagerness and examined the Scriptures
every day to see if what Paul said was true." [Acts 17:11]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20101011/8396d926/attachment.html>


More information about the cairo mailing list