[cairo] directfb blend mode patch
Benjamin Otte
otte at gnome.org
Wed Jan 2 06:22:14 PST 2008
My patch had it in show_glyphs, too, not sure how much performance one
gains from it.
Cheers,
Benjamin
On Jan 2, 2008 3:14 PM, Claudio Ciccani <klan at users.sourceforge.net> wrote:
>
> Il giorno mer, 02/01/2008 alle 12.51 +0100, Benjamin Otte ha scritto:
>
> > Hi Claudio,
> >
> > I've got a directfb patch here that speeds up Swfdec rendering
> > substantially, but I'm not sure if it's ok to just apply it, so I'm
> > sending it to you for review first. The patch improves on the blend
> > mode selection by taking the existance of an alpha channel into
> > account (see git log in patch). It sped up specific testcases by a
> > factor of 30 and provided a general speedup for Swfdec at around
> > 10-20%.
> >
> > The part where I'm not quite sure if it works correctly (it should) is
> > where it somehow switches mask and source when rendering, because I
> > didn't quite understand it. And I couldn't run the testsuite, because
> > it crashed half way through all the time in Directfb. (Ubuntu Hardy
> > packages of 1.0.1 with X11 backend.) Also, it didn't produce correct
> > results anyway.
> >
>
> That kind of optimization is already performed in
> _directfb_prepare_composite().
> I have added a similar optimization to
> _cairo_directfb_surface_fill_rectangles() too.
> Hope it's enough.
>
>
More information about the cairo
mailing list