[cairo] Displaying PNGs efficiently with Cairo

Vladimir Vukicevic vladimirv at gmail.com
Fri Nov 4 22:37:12 PST 2005


No released version of firefox (or even any easily-accessible
version!) is using Cairo yet, except for handling of the <canvas> tag
and SVG.  You may want to step through the cairo_fill/cairo_paint path
and see exactly what you're hitting...  I've been thinking for a while
to add some instrumentation for cairo to be able to trace which
fallbacks are being hit, etc., but was going to wait until the
surface-fallback reorg work is finished.

    - Vlad

On 11/4/05, Haakon Riiser <haakon.riiser at fys.uio.no> wrote:
> I posted some sample code to display a PNG image a while back.  The
> problem was that the actual painting of the image is _extremely_
> slow.  It takes ~5 seconds to paint a full screen image, and that
> does not include the loading/decoding of the image.  The X server
> manages to consume 5 seconds of CPU time painting this image, and I
> have no idea why.  I hear that Firefox is using Cairo now, and
> obviously they don't have this problem.
>
> Can anyone point me in the direction of example code that displays
> PNGs efficiently?  (Yeah, there's Firefox, but I'm a bit hesitant to
> use a multi-million line code base as a Cairo tuturial. :-)
>
> --
>  Haakon
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://cairographics.org/cgi-bin/mailman/listinfo/cairo
>


More information about the cairo mailing list