mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 21:31:56 +00:00
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:
parent
d48a4c2c3a
commit
901b07f83e
3 changed files with 42 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue