summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2018-07-17 15:33:50 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2018-08-17 09:38:39 -0700
commit8ca419fb2ebbba427f2f27ba3d794fb3d6cc5797 (patch)
treed20c4176c368080144299b6e9e7e59c3116b48b5 /include
parent790b9f5c827101a47fd06fbfa944d36e3f0b285c (diff)
downloadqtlocation-mapboxgl-8ca419fb2ebbba427f2f27ba3d794fb3d6cc5797.tar.gz
[core] Evict unused font stacks from GlyphManager
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/util/font_stack.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mbgl/util/font_stack.hpp b/include/mbgl/util/font_stack.hpp
index d0b431e9ea..ace60a4ba6 100644
--- a/include/mbgl/util/font_stack.hpp
+++ b/include/mbgl/util/font_stack.hpp
@@ -1,7 +1,11 @@
#pragma once
+#include <mbgl/util/immutable.hpp>
+#include <mbgl/style/layer.hpp>
+
#include <string>
#include <vector>
+#include <set>
namespace mbgl {
@@ -14,4 +18,7 @@ struct FontStackHash {
std::size_t operator()(const FontStack&) const;
};
+// Statically evaluate layer properties to determine what font stacks are used.
+std::set<FontStack> fontStacks(const std::vector<Immutable<style::Layer::Impl>>&);
+
} // namespace mbgl