diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-05-22 11:01:54 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-05-28 16:16:42 +0300 |
commit | a03f7b166b2fe68f63ca75337bd0ac0000cee135 (patch) | |
tree | f4435b998b5775a4596392bcc45bea020c09527e /src/mbgl/annotation | |
parent | e5431d01817c0546aa0b971a7b0b33c9bbd87077 (diff) | |
download | qtlocation-mapboxgl-a03f7b166b2fe68f63ca75337bd0ac0000cee135.tar.gz |
[core] RenderTile does not expose Tile
RenderTile and Tile will be split when ochestration movces to a separate thread.
This PR improves encapsulation of Tiles management: now performed within TilePyramid.
Diffstat (limited to 'src/mbgl/annotation')
-rw-r--r-- | src/mbgl/annotation/render_annotation_source.cpp | 8 | ||||
-rw-r--r-- | src/mbgl/annotation/render_annotation_source.hpp | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/mbgl/annotation/render_annotation_source.cpp b/src/mbgl/annotation/render_annotation_source.cpp index c90b73dad9..ada6ec5ea9 100644 --- a/src/mbgl/annotation/render_annotation_source.cpp +++ b/src/mbgl/annotation/render_annotation_source.cpp @@ -59,6 +59,14 @@ void RenderAnnotationSource::finishRender(PaintParameters& parameters) { tilePyramid.finishRender(parameters); } +void RenderAnnotationSource::updateFadingTiles() { + tilePyramid.updateFadingTiles(); +} + +bool RenderAnnotationSource::hasFadingTiles() const { + return tilePyramid.hasFadingTiles(); +} + std::vector<std::reference_wrapper<RenderTile>> RenderAnnotationSource::getRenderTiles() { return tilePyramid.getRenderTiles(); } diff --git a/src/mbgl/annotation/render_annotation_source.hpp b/src/mbgl/annotation/render_annotation_source.hpp index 8267fea39e..c427da16d5 100644 --- a/src/mbgl/annotation/render_annotation_source.hpp +++ b/src/mbgl/annotation/render_annotation_source.hpp @@ -21,6 +21,8 @@ public: 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; |