AtlasRow::AllocateCell
function · font · primitive
- Address
0x5c81b0· 802 bytes, up to0x5c84d1- Signature
void * __thiscall (AtlasRow *this, void *desc, uint32_t row, uint32_t cellSize)- Meaning
- Finds a free span in a row and gives it to a glyph
- Confidence
- inferred
- Finding
- font/glyphs#finding-or-making-a-glyph
Finding: Finding or making a glyph in font: glyph cache and atlas
0x5cabd0(code) returns the cached descriptor of a character code, making it when missing. A hit
moves the descriptor to the front of the recency list. A miss rasterizes the glyph, places it
in a page (making a page if needed, evicting the least recently used glyph when the pages are
full) and enters it in the hash.
The derivation is in the doc.
Callers 2
- CGxFont::NewCodeDesc font
- AtlasPage::PlaceGlyph font
Callees 9
- 0x5c7f00 font
- GlyphRecordMove font
- CharCodeDesc::SetUvRect font
- AtlasCell::FreeAfter font
- AtlasCell::FreeBefore font
- ElementTable::Insert font
- 0x5c96a0 font
- 0x5c96e0 font
- SMemAlloc storm
Calls and jumps by a bare address, from tables/calls.tsv.