72 void GetStats(
int& unique_fonts,
int& total_refs,
int& cache_hits,
int& cache_misses);
89 std::map<FontCacheKey, CachedTTFFont> mCache;
static FontCacheManager & GetInstance()
Get singleton instance.
void ReleaseFont(const FontCacheKey &key)
TTF_Font * GetFont(const FontCacheKey &key, const std::string &full_path)
void PrintCache()
Print cache contents to stdout (for debugging)
void GetStats(int &unique_fonts, int &total_refs, int &cache_hits, int &cache_misses)
CachedTTFFont(TTF_Font *f)
bool operator<(const FontCacheKey &other) const
Comparison operator for std::map ordering.
bool operator==(const FontCacheKey &other) const
Equality operator for debugging/testing.