summaryrefslogtreecommitdiff
path: root/include/mbgl/renderer
diff options
context:
space:
mode:
authorartemp <artem@mapnik.org>2014-10-27 12:35:17 -0400
committerartemp <artem@mapnik.org>2014-10-27 14:18:11 -0400
commit9364fd7322166578f6f0b7b57273db5a20bea2f7 (patch)
treef36ac8d81eb8a92c5e1e7f6daa8b5069eb954d01 /include/mbgl/renderer
parent5508285424b68c6f0a26e70ede8e389715d02deb (diff)
downloadqtlocation-mapboxgl-9364fd7322166578f6f0b7b57273db5a20bea2f7.tar.gz
make addGlyphsToAtlas static method of SymbolBucket + add addGlyphs method to minimise number of mutex locking
Diffstat (limited to 'include/mbgl/renderer')
-rw-r--r--include/mbgl/renderer/symbol_bucket.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mbgl/renderer/symbol_bucket.hpp b/include/mbgl/renderer/symbol_bucket.hpp
index 42682401ef..9a5da1d012 100644
--- a/include/mbgl/renderer/symbol_bucket.hpp
+++ b/include/mbgl/renderer/symbol_bucket.hpp
@@ -86,8 +86,8 @@ private:
void addSymbols(Buffer &buffer, const PlacedGlyphs &symbols, float scale, PlacementRange placementRange);
// Adds glyphs to the glyph atlas so that they have a left/top/width/height coordinates associated to them that we can use for writing to a buffer.
- void addGlyphsToAtlas(uint64_t tileid, const std::string stackname, const std::u32string &string,
- const FontStack &fontStack, GlyphAtlas &glyphAtlas, GlyphPositions &face);
+ static void addGlyphsToAtlas(uint64_t tileid, const std::string stackname, const std::u32string &string,
+ const FontStack &fontStack, GlyphAtlas &glyphAtlas, GlyphPositions &face);
public:
const StyleBucketSymbol &properties;