diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2018-11-19 15:30:19 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2018-11-19 17:16:54 +0200 |
commit | 8ac87ec5cb2374d212a31942ca19ce395704eb69 (patch) | |
tree | 9ec08c29e1a4f5e779f9c69ba7d96411f1c64f1d /src/mbgl/style/layer_impl.hpp | |
parent | 9592e61288d071a7927c7cf99e7e5f3f97711642 (diff) | |
download | qtlocation-mapboxgl-8ac87ec5cb2374d212a31942ca19ce395704eb69.tar.gz |
Refactor util::fontStacks()
So that it does not downcast `Layer::Impl` instances.
Also, an unneeded `std::vector` construction was removed from
`Parser::fontStacks()`.
Diffstat (limited to 'src/mbgl/style/layer_impl.hpp')
-rw-r--r-- | src/mbgl/style/layer_impl.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/style/layer_impl.hpp b/src/mbgl/style/layer_impl.hpp index 014fb60348..948bbab619 100644 --- a/src/mbgl/style/layer_impl.hpp +++ b/src/mbgl/style/layer_impl.hpp @@ -41,8 +41,12 @@ public: // Utility function for automatic layer grouping. virtual void stringifyLayout(rapidjson::Writer<rapidjson::StringBuffer>&) const = 0; + // Returns pointer to the statically allocated layer type info structure. virtual const LayerTypeInfo* getTypeInfo() const noexcept = 0; + // Populates the given \a fontStack with fonts being used by the layer. + virtual void populateFontStack(std::set<FontStack>& fontStack) const; + // Note: LayerType is deprecated, do not use it. const LayerType type; std::string id; |