[cairo] Dithering

Keith Packard keithp at keithp.com
Mon Apr 7 21:53:12 PDT 2008


On Mon, 2008-04-07 at 17:36 -0400, Behdad Esfahbod wrote:

> When doing such a thing, it would make a lot of sense to take advantage
> of cairo_surface_flush().  But then we cannot assume that people are
> even calling that function at all, let alone correctly.  Same about
> cairo_surface_mark_dirty().  So as we discussed on IRC the other day, we
> need some new API, say, cairo_surface_freeze/thaw() or begin/end(), and
> do all the optimizations only if frozen.  Then making Gtk+ and firefox
> use it correctly is not that hard.

That sounds ideal. We'd just stick that call in the existing Gtk+ double
buffering bits and it should all 'just work'.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.cairographics.org/archives/cairo/attachments/20080407/95523d1b/attachment.pgp 


More information about the cairo mailing list