diff options
Diffstat (limited to 'include/mbgl/layermanager/layer_manager.hpp')
-rw-r--r-- | include/mbgl/layermanager/layer_manager.hpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/include/mbgl/layermanager/layer_manager.hpp b/include/mbgl/layermanager/layer_manager.hpp index 038a6dcb04..de10b0207c 100644 --- a/include/mbgl/layermanager/layer_manager.hpp +++ b/include/mbgl/layermanager/layer_manager.hpp @@ -2,10 +2,16 @@ #include <mbgl/style/layer.hpp> -namespace mbgl { +#include <vector> +namespace mbgl { +class GeometryTileLayer; class LayerFactory; class RenderLayer; +class Bucket; +class BucketParameters; +class Layout; +class LayoutParameters; /** * @brief A singleton class responsible for creating layer instances. @@ -25,11 +31,15 @@ public: */ static LayerManager* get() noexcept; - /// Returns a new Layer instance on success call; returns `nulltptr` otherwise. + /// Returns a new Layer instance on success call; returns `nullptr` otherwise. std::unique_ptr<style::Layer> createLayer(const std::string& type, const std::string& id, const style::conversion::Convertible& value, style::conversion::Error& error) noexcept; - /// Returns a new RenderLayer instance on success call; returns `nulltptr` otherwise. + /// Returns a new RenderLayer instance on success call; returns `nullptr` otherwise. std::unique_ptr<RenderLayer> createRenderLayer(Immutable<style::Layer::Impl>) noexcept; + /// Returns a new Bucket instance on success call; returns `nullptr` otherwise. + std::unique_ptr<Bucket> createBucket(const BucketParameters&, const std::vector<const RenderLayer*>&) noexcept; + /// Returns a new Layout instance on success call; returns `nullptr` otherwise. + std::unique_ptr<Layout> createLayout(const LayoutParameters&, std::unique_ptr<GeometryTileLayer>, const std::vector<const RenderLayer*>&) noexcept; /** * @brief a build-time flag to enable/disable annotations in mapbox-gl-native core. |