[cairo] cairo -> cairo c src backend

Behdad Esfahbod behdad at behdad.org
Fri Sep 22 10:43:13 PDT 2006

We almost have all the machinery for this: cairo meta-surface.  What
needs to be done is implement methods for meta-surface and some other
types, mostly the immutable ones, to print themselves as cairo code.
This leads to the harder question: what will you do with surface
patterns used?

However, this will be code specific to the C interface.  So, not sure
how useful that will be.

Anyway, it's something to look into when we decide to make the
meta-surface public.  And for the least, we should expose enough API to
let someone write what you propose externally.  Or maybe not.  I'm not


On Fri, 2006-09-22 at 12:56 -0400, Mike Emmel wrote:
> I've come up with a intresting idea esp for svg frontends on cairo.
> If we added a backend that simply prints the cairo drawing commands as
> a C source
> function or functions we have a pretty decent compiler in particular
> static svg->native.
> It would be useful for svg widgets for example.
> Worst case is it would be useful for debugging cairo performance
> issues for various
> front ends.
> Mike
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://cairographics.org/cgi-bin/mailman/listinfo/cairo

"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
        -- Dan Bern, "New American Language"

More information about the cairo mailing list