diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-04-20 17:11:50 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-05-02 08:45:09 -0700 |
commit | 3f0c89d633a5056006557ad5f4b9e446807d00ee (patch) | |
tree | 5405c50dd26a5a393a982e8e0f76b764dbbccf48 /src/mbgl/style/sources/vector_source_impl.cpp | |
parent | 197751bace6181f2c2dbe4c890f277a0dc7e58b1 (diff) | |
download | qtlocation-mapboxgl-3f0c89d633a5056006557ad5f4b9e446807d00ee.tar.gz |
[core] Refactor Source::*Impls into RenderSources and TilePyramid
Diffstat (limited to 'src/mbgl/style/sources/vector_source_impl.cpp')
-rw-r--r-- | src/mbgl/style/sources/vector_source_impl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/style/sources/vector_source_impl.cpp b/src/mbgl/style/sources/vector_source_impl.cpp index efe8afbbea..158abf8575 100644 --- a/src/mbgl/style/sources/vector_source_impl.cpp +++ b/src/mbgl/style/sources/vector_source_impl.cpp @@ -1,5 +1,6 @@ #include <mbgl/style/sources/vector_source_impl.hpp> -#include <mbgl/tile/vector_tile.hpp> +#include <mbgl/renderer/sources/render_vector_source.hpp> +#include <mbgl/util/constants.hpp> namespace mbgl { namespace style { @@ -8,9 +9,8 @@ VectorSource::Impl::Impl(std::string id_, Source& base_, variant<std::string, Ti : TileSourceImpl(SourceType::Vector, std::move(id_), base_, std::move(urlOrTileset_), util::tileSize) { } -std::unique_ptr<Tile> VectorSource::Impl::createTile(const OverscaledTileID& tileID, - const UpdateParameters& parameters) { - return std::make_unique<VectorTile>(tileID, base.getID(), parameters, tileset); +std::unique_ptr<RenderSource> VectorSource::Impl::createRenderSource() const { + return std::make_unique<RenderVectorSource>(*this); } } // namespace style |