Re: Cairo based engine api for GTK+ 3.0



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...

Regards,

Thomas



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