MCPcopy Create free account
hub / github.com/defold/defold / SortCache

Function SortCache

engine/render/src/render/font/fontmap.cpp:702–705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700 };
701
702 static void SortCache(HFontMap font_map)
703 {
704 std::sort(font_map->m_CacheIndices, font_map->m_CacheIndices + font_map->m_CacheCursor, CompareCacheGlyphPred(font_map->m_Cache));
705 }
706
707 // Either get a free slot, or the oldest one
708 static CacheGlyph* AcquireFreeGlyphFromCache(HFontMap font_map)

Callers 1

AddGlyphToCacheFunction · 0.85

Calls 2

sortFunction · 0.50

Tested by

no test coverage detected