diff options
Diffstat (limited to 'src/mbgl/annotation/render_annotation_source.hpp')
-rw-r--r-- | src/mbgl/annotation/render_annotation_source.hpp | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/src/mbgl/annotation/render_annotation_source.hpp b/src/mbgl/annotation/render_annotation_source.hpp index c427da16d5..e5d5130446 100644 --- a/src/mbgl/annotation/render_annotation_source.hpp +++ b/src/mbgl/annotation/render_annotation_source.hpp @@ -1,16 +1,13 @@ #pragma once -#include <mbgl/renderer/render_source.hpp> -#include <mbgl/renderer/tile_pyramid.hpp> #include <mbgl/annotation/annotation_source.hpp> +#include <mbgl/renderer/sources/render_tile_source.hpp> namespace mbgl { -class RenderAnnotationSource : public RenderSource { +class RenderAnnotationSource final : public RenderTileSource { public: - RenderAnnotationSource(Immutable<AnnotationSource::Impl>); - - bool isLoaded() const final; + explicit RenderAnnotationSource(Immutable<AnnotationSource::Impl>); void update(Immutable<style::Source::Impl>, const std::vector<Immutable<style::LayerProperties>>&, @@ -18,14 +15,6 @@ public: bool needsRelayout, const TileParameters&) final; - void upload(gfx::UploadPass&) final; - void prepare(const SourcePrepareParameters&) final; - void finishRender(PaintParameters&) final; - void updateFadingTiles() final; - bool hasFadingTiles() const final; - - std::vector<std::reference_wrapper<RenderTile>> getRenderTiles() final; - std::unordered_map<std::string, std::vector<Feature>> queryRenderedFeatures(const ScreenLineString& geometry, const TransformState& transformState, @@ -36,13 +25,8 @@ public: std::vector<Feature> querySourceFeatures(const SourceQueryOptions&) const final; - void reduceMemoryUse() final; - void dumpDebugLogs() const final; - private: const AnnotationSource::Impl& impl() const; - - TilePyramid tilePyramid; }; template <> |