Re: gtk_widget_draw()



On Thu, 2010-08-12 at 20:48 +0200, Benjamin Otte wrote:
> 
> > EOG uses this to good effect, for example - scaling an image is
> > expensive, so it only scales the areas that absolutely need to be
> > repainted.
> >
> Cairo does that automatically. On the GPU, too. So I suppose EOG
> doesn't yet upload the pixbuf to a native cairo surface and uses that
> for rendering? 

Just FYI, I have been playing a bit with this, in order to replace
current's eog code for handling with the scaling/rendering and rely
completely on cairo; but it is clearly noticeably that this becomes
really slow when the image is over certain dimensions, say 4096×4096. In
any other case, performance is *really* great.

The patches are in bug
https://bugzilla.gnome.org/show_bug.cgi?id=626795 , if you care to see.

Claudio




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]