Re: Cairo based engine api for GTK+ 3.0



On Thu, 2009-06-18 at 11:45 +0100, Chris Wilson wrote:
> On Thu, 2009-06-18 at 11:33 +0100, Thomas Wood wrote:
> > On Thu, 2009-06-18 at 11:26 +0100, Chris Wilson wrote:
> > > The use of pango_cairo_layout_path(); cairo_fill(); is a performance
> > > nightmare, use pango_cairo_show_layout() instead. [The difference
> > > between the two is that pango_cairo_layout_path() will extract the paths
> > > from the glyphs and fill by sending very long lists of trapezoids to the
> > > X server every time, whereas pango_cairo_show_layout() will cache the
> > > glyphs masks on the X server (as pixmaps) and just issue a short list of
> > > indices to composite. So the latter is far more computationally, memory
> > > and bandwidth efficient.]
> > 
> > Do you know of a more efficient way to do this, but still using cairo?
> > 
> > Alternatively, we could remove draw_layout() from the engine API. It
> > isn't used a lot, normally only to make insensitive text look nicer than
> > the default implementation...
> 
> Just to clarify: do you want a cairo equivalent for the stipple effect
> or how to replace pango_cairo_layout_path()?

Oh, sorry, totally miss-read your original e-mail. Yes, using
pango_cairo_show_layout() sounds like a good idea. Thanks for the patch,
I'll apply it to my branch.

Regards,

Thomas



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