summaryrefslogtreecommitdiff
path: root/include/mbgl/style/sources
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/sources')
-rw-r--r--include/mbgl/style/sources/custom_geometry_source.hpp3
-rw-r--r--include/mbgl/style/sources/geojson_source.hpp5
-rw-r--r--include/mbgl/style/sources/image_source.hpp5
-rw-r--r--include/mbgl/style/sources/raster_source.hpp3
-rw-r--r--include/mbgl/style/sources/vector_source.hpp3
5 files changed, 14 insertions, 5 deletions
diff --git a/include/mbgl/style/sources/custom_geometry_source.hpp b/include/mbgl/style/sources/custom_geometry_source.hpp
index 9daeeb3819..183c45f79b 100644
--- a/include/mbgl/style/sources/custom_geometry_source.hpp
+++ b/include/mbgl/style/sources/custom_geometry_source.hpp
@@ -12,6 +12,7 @@ class OverscaledTileID;
class CanonicalTileID;
template <class T>
class Actor;
+class FileSource;
namespace style {
@@ -38,7 +39,7 @@ public:
public:
CustomGeometrySource(std::string id, CustomGeometrySource::Options options);
~CustomGeometrySource() final;
- void loadDescription(FileSource&) final;
+ void loadDescription(std::shared_ptr<FileSource>) final;
void setTileData(const CanonicalTileID&, const GeoJSON&);
void invalidateTile(const CanonicalTileID&);
void invalidateRegion(const LatLngBounds&);
diff --git a/include/mbgl/style/sources/geojson_source.hpp b/include/mbgl/style/sources/geojson_source.hpp
index a03b910279..732b8cac75 100644
--- a/include/mbgl/style/sources/geojson_source.hpp
+++ b/include/mbgl/style/sources/geojson_source.hpp
@@ -5,9 +5,12 @@
#include <mbgl/util/optional.hpp>
#include <mbgl/util/constants.hpp>
+#include <memory>
+
namespace mbgl {
class AsyncRequest;
+class FileSource;
namespace style {
@@ -39,7 +42,7 @@ public:
class Impl;
const Impl& impl() const;
- void loadDescription(FileSource&) final;
+ void loadDescription(std::shared_ptr<FileSource>) final;
private:
optional<std::string> url;
diff --git a/include/mbgl/style/sources/image_source.hpp b/include/mbgl/style/sources/image_source.hpp
index 009764291f..2f3323a5b9 100644
--- a/include/mbgl/style/sources/image_source.hpp
+++ b/include/mbgl/style/sources/image_source.hpp
@@ -4,9 +4,12 @@
#include <mbgl/util/image.hpp>
#include <mbgl/util/optional.hpp>
+#include <memory>
+
namespace mbgl {
class LatLng;
class AsyncRequest;
+class FileSource;
namespace style {
@@ -26,7 +29,7 @@ public:
class Impl;
const Impl& impl() const;
- void loadDescription(FileSource&) final;
+ void loadDescription(std::shared_ptr<FileSource>) final;
private:
optional<std::string> url;
std::unique_ptr<AsyncRequest> req;
diff --git a/include/mbgl/style/sources/raster_source.hpp b/include/mbgl/style/sources/raster_source.hpp
index 5aa81aa979..7c6c2a52c1 100644
--- a/include/mbgl/style/sources/raster_source.hpp
+++ b/include/mbgl/style/sources/raster_source.hpp
@@ -7,6 +7,7 @@
namespace mbgl {
class AsyncRequest;
+class FileSource;
namespace style {
@@ -23,7 +24,7 @@ public:
class Impl;
const Impl& impl() const;
- void loadDescription(FileSource&) final;
+ void loadDescription(std::shared_ptr<FileSource>) final;
private:
const variant<std::string, Tileset> urlOrTileset;
diff --git a/include/mbgl/style/sources/vector_source.hpp b/include/mbgl/style/sources/vector_source.hpp
index 6f16974b40..e72244c361 100644
--- a/include/mbgl/style/sources/vector_source.hpp
+++ b/include/mbgl/style/sources/vector_source.hpp
@@ -7,6 +7,7 @@
namespace mbgl {
class AsyncRequest;
+class FileSource;
namespace style {
@@ -21,7 +22,7 @@ public:
class Impl;
const Impl& impl() const;
- void loadDescription(FileSource&) final;
+ void loadDescription(std::shared_ptr<FileSource>) final;
private:
const variant<std::string, Tileset> urlOrTileset;