[core] Refactor Source::*Impls into RenderSources and TilePyramid
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user