diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-04-22 13:28:03 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-04-22 13:28:03 -0700 |
commit | 0c5d805bf9ac14eeaaaef8c08281a3e6f33ddb0b (patch) | |
tree | bcfd85dcdc22fb6b321d0111a0762affc743dcfa /src/mbgl/geometry | |
parent | 9c9ff2d2d4aeac9f605a6ca23447e54adea9f6bd (diff) | |
download | qtlocation-mapboxgl-0c5d805bf9ac14eeaaaef8c08281a3e6f33ddb0b.tar.gz |
[core] FontStack ⇢ GlyphSet (#4803)
A font stack is an array of font names. This is not that.
Diffstat (limited to 'src/mbgl/geometry')
-rw-r--r-- | src/mbgl/geometry/glyph_atlas.cpp | 6 | ||||
-rw-r--r-- | src/mbgl/geometry/glyph_atlas.hpp | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/mbgl/geometry/glyph_atlas.cpp b/src/mbgl/geometry/glyph_atlas.cpp index 046ba46520..92fc7903b2 100644 --- a/src/mbgl/geometry/glyph_atlas.cpp +++ b/src/mbgl/geometry/glyph_atlas.cpp @@ -1,7 +1,5 @@ #include <mbgl/geometry/glyph_atlas.hpp> -#include <mbgl/text/font_stack.hpp> - #include <mbgl/gl/gl.hpp> #include <mbgl/gl/gl_object_store.hpp> #include <mbgl/platform/log.hpp> @@ -27,12 +25,12 @@ GlyphAtlas::~GlyphAtlas() { void GlyphAtlas::addGlyphs(uintptr_t tileUID, const std::u32string& text, const std::string& stackName, - const FontStack& fontStack, + const GlyphSet& glyphSet, GlyphPositions& face) { std::lock_guard<std::mutex> lock(mtx); - const std::map<uint32_t, SDFGlyph>& sdfs = fontStack.getSDFs(); + const std::map<uint32_t, SDFGlyph>& sdfs = glyphSet.getSDFs(); for (uint32_t chr : text) { diff --git a/src/mbgl/geometry/glyph_atlas.hpp b/src/mbgl/geometry/glyph_atlas.hpp index 2758ac7cee..9b8af9f75d 100644 --- a/src/mbgl/geometry/glyph_atlas.hpp +++ b/src/mbgl/geometry/glyph_atlas.hpp @@ -23,7 +23,7 @@ public: void addGlyphs(uintptr_t tileUID, const std::u32string& text, const std::string& stackName, - const FontStack&, + const GlyphSet&, GlyphPositions&); void removeGlyphs(uintptr_t tileUID); |