diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2018-07-17 15:33:50 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2018-07-18 13:59:41 -0700 |
commit | 9e12680265a16379bc1b3b2d2772b8b72324ff38 (patch) | |
tree | 7a1d3d64046d2cef972029e1418f7a61656a8f99 /include/mbgl/util/font_stack.hpp | |
parent | ced0f4070e8fbcdc79bff67547a02d4eed347298 (diff) | |
download | qtlocation-mapboxgl-upstream/release-node-v4.0.0-fix-12388.tar.gz |
[core] Evict unused font stacks from GlyphManagerupstream/release-node-v4.0.0-fix-12388
Diffstat (limited to 'include/mbgl/util/font_stack.hpp')
-rw-r--r-- | include/mbgl/util/font_stack.hpp | 7 |
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 |