diff options
Diffstat (limited to 'src/mbgl/style/style.hpp')
-rw-r--r-- | src/mbgl/style/style.hpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mbgl/style/style.hpp b/src/mbgl/style/style.hpp index 26959c9fbf..6c80a2ef59 100644 --- a/src/mbgl/style/style.hpp +++ b/src/mbgl/style/style.hpp @@ -3,6 +3,7 @@ #include <mbgl/style/transition_options.hpp> #include <mbgl/style/observer.hpp> #include <mbgl/style/source_observer.hpp> +#include <mbgl/renderer/render_source_observer.hpp> #include <mbgl/style/layer_observer.hpp> #include <mbgl/style/update_batch.hpp> #include <mbgl/renderer/render_layer.hpp> @@ -34,6 +35,7 @@ class TransformState; class RenderedQueryOptions; class Scheduler; class RenderLayer; +class RenderSource; namespace style { @@ -44,6 +46,7 @@ class QueryParameters; class Style : public GlyphAtlasObserver, public SpriteAtlasObserver, public SourceObserver, + public RenderSourceObserver, public LayerObserver, public util::noncopyable { public: @@ -125,8 +128,12 @@ public: TransitioningLight transitioningLight; EvaluatedLight evaluatedLight; + RenderSource* getRenderSource(const std::string& id) const; + private: std::vector<std::unique_ptr<Source>> sources; + std::vector<std::unique_ptr<RenderSource>> renderSources; + std::vector<std::unique_ptr<Layer>> layers; std::vector<std::unique_ptr<RenderLayer>> renderLayers; std::vector<std::string> classes; @@ -156,8 +163,8 @@ private: void onSourceChanged(Source&) override; void onSourceError(Source&, std::exception_ptr) override; void onSourceDescriptionChanged(Source&) override; - void onTileChanged(Source&, const OverscaledTileID&) override; - void onTileError(Source&, const OverscaledTileID&, std::exception_ptr) override; + void onTileChanged(RenderSource&, const OverscaledTileID&) override; + void onTileError(RenderSource&, const OverscaledTileID&, std::exception_ptr) override; // LayerObserver implementation. void onLayerFilterChanged(Layer&) override; |