summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/symbol_bucket.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/renderer/symbol_bucket.hpp')
-rw-r--r--src/mbgl/renderer/symbol_bucket.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mbgl/renderer/symbol_bucket.hpp b/src/mbgl/renderer/symbol_bucket.hpp
index bc148579fa..537c6d2097 100644
--- a/src/mbgl/renderer/symbol_bucket.hpp
+++ b/src/mbgl/renderer/symbol_bucket.hpp
@@ -81,7 +81,7 @@ private:
// Adds placed items to the buffer.
- template <typename Buffer>
+ template <typename Buffer, typename GroupType>
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.
@@ -95,16 +95,16 @@ public:
private:
Collision &collision;
- struct {
+ struct TextBuffer {
TextVertexBuffer vertices;
TriangleElementsBuffer triangles;
- std::vector<TextElementGroup> groups;
+ std::vector<std::unique_ptr<TextElementGroup>> groups;
} text;
- struct {
+ struct IconBuffer {
IconVertexBuffer vertices;
TriangleElementsBuffer triangles;
- std::vector<IconElementGroup> groups;
+ std::vector<std::unique_ptr<IconElementGroup>> groups;
} icon;
};