[core] Evict unused font stacks from GlyphManager

This commit is contained in:
John Firebaugh
2018-07-17 15:33:50 -07:00
parent 790b9f5c82
commit 8ca419fb2e
7 changed files with 73 additions and 32 deletions

View File

@@ -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