[core] Evict unused font stacks from GlyphManager
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user