Add some framework support for caching the last accessed run.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15980 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
alexm 2003-02-17 01:19:34 +00:00
parent d48a4c2c3a
commit 901b07f83e
3 changed files with 42 additions and 1 deletions

View file

@ -84,6 +84,15 @@ how it's supposed to work. It's functional and correct, but it isn't fast. */
/* For -rectArrayForGlyphRange:... */
NSRect *rect_array;
int rect_array_size;
/*
Cached run. GSHorizontalTypesetter (and other typesetters, presumably)
often walk linearly through the glyphs. Thus, for many methods, we cache
the last run so we can quickly get more information for the next glyph.
*/
struct GSLayoutManager_glyph_run_s *cached_run;
int cached_pos, cached_cpos;
}