summaryrefslogtreecommitdiff
path: root/src/mbgl/text/glyph_store.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/text/glyph_store.hpp')
-rw-r--r--src/mbgl/text/glyph_store.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mbgl/text/glyph_store.hpp b/src/mbgl/text/glyph_store.hpp
index 6839045d61..406234241d 100644
--- a/src/mbgl/text/glyph_store.hpp
+++ b/src/mbgl/text/glyph_store.hpp
@@ -17,6 +17,7 @@
namespace mbgl {
class FileSource;
+class Environment;
class SDFGlyph {
public:
@@ -49,7 +50,10 @@ private:
class GlyphPBF {
public:
- GlyphPBF(const std::string &glyphURL, const std::string &fontStack, GlyphRange glyphRange, FileSource& fileSource);
+ GlyphPBF(const std::string &glyphURL,
+ const std::string &fontStack,
+ GlyphRange glyphRange,
+ Environment &env);
private:
GlyphPBF(const GlyphPBF &) = delete;
@@ -72,7 +76,7 @@ private:
// Manages Glyphrange PBF loading.
class GlyphStore {
public:
- GlyphStore(FileSource& fileSource);
+ GlyphStore(Environment &);
// Block until all specified GlyphRanges of the specified font stack are loaded.
void waitForGlyphRanges(const std::string &fontStack, const std::set<GlyphRange> &glyphRanges);
@@ -88,7 +92,7 @@ private:
FontStack &createFontStack(const std::string &fontStack);
std::string glyphURL;
- FileSource& fileSource;
+ Environment &env;
std::unordered_map<std::string, std::map<GlyphRange, std::unique_ptr<GlyphPBF>>> ranges;
std::unordered_map<std::string, std::unique_ptr<FontStack>> stacks;
std::unique_ptr<uv::mutex> mtx;