Skip to content
Snippets Groups Projects
Commit be8d052b authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

faster-er font map findings

parent 42735f0d
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#ifndef LL_LLFONTFREETYPE_H #ifndef LL_LLFONTFREETYPE_H
#define LL_LLFONTFREETYPE_H #define LL_LLFONTFREETYPE_H
#include <unordered_map> #include <boost/unordered_map.hpp>
#include "llpointer.h" #include "llpointer.h"
#include "llstl.h" #include "llstl.h"
...@@ -160,7 +160,7 @@ class LLFontFreetype final : public LLRefCount, public LLTrace::MemTrackable<LLF ...@@ -160,7 +160,7 @@ class LLFontFreetype final : public LLRefCount, public LLTrace::MemTrackable<LLF
bool getKerningCache(U32 left_glyph, U32 right_glyph, F32& kerning) const; bool getKerningCache(U32 left_glyph, U32 right_glyph, F32& kerning) const;
void setKerningCache(U32 left_glyph, U32 right_glyph, F32 kerning) const; void setKerningCache(U32 left_glyph, U32 right_glyph, F32 kerning) const;
mutable std::unordered_map<U64, F32> mKerningCache; mutable boost::unordered_map<U64, F32> mKerningCache;
std::string mName; std::string mName;
...@@ -181,7 +181,7 @@ class LLFontFreetype final : public LLRefCount, public LLTrace::MemTrackable<LLF ...@@ -181,7 +181,7 @@ class LLFontFreetype final : public LLRefCount, public LLTrace::MemTrackable<LLF
BOOL mIsFallback; BOOL mIsFallback;
font_vector_t mFallbackFonts; // A list of fallback fonts to look for glyphs in (for Unicode chars) font_vector_t mFallbackFonts; // A list of fallback fonts to look for glyphs in (for Unicode chars)
typedef std::unordered_map<llwchar, LLFontGlyphInfo*> char_glyph_info_map_t; typedef boost::unordered_map<llwchar, LLFontGlyphInfo*> char_glyph_info_map_t;
mutable char_glyph_info_map_t mCharGlyphInfoMap; // Information about glyph location in bitmap mutable char_glyph_info_map_t mCharGlyphInfoMap; // Information about glyph location in bitmap
mutable LLFontBitmapCache* mFontBitmapCachep; mutable LLFontBitmapCache* mFontBitmapCachep;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment