diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-12-01 08:34:07 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-12-01 08:34:07 +0000 |
commit | c8473e49abf5557f55b5c095be4c15c52dd4aa9c (patch) | |
tree | 7bb30fee906cb309c32f8055fbd727972ea3b5f7 /modules | |
parent | 8120999a65b8809a0a40d69eff6d74162ecf42af (diff) | |
download | pango-c8473e49abf5557f55b5c095be4c15c52dd4aa9c.tar.gz |
Don't cache run_logical_rect in PangoLayoutIter. Just cache run_width that
2006-12-01 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-layout.c (pango_layout_run_get_width), (update_run),
(pango_layout_iter_copy), (pango_layout_iter_get_run_extents):
Don't cache run_logical_rect in PangoLayoutIter. Just cache run_width
that can be fastly computed using pango_glyph_string_get_width().
Avoids one pango_font_get_glyph_extents() call per glyph per layout
rendering. We are down to 1 now.
Diffstat (limited to 'modules')
0 files changed, 0 insertions, 0 deletions