summaryrefslogtreecommitdiff
path: root/src/mbgl/style/sources/image_source_impl.hpp
diff options
context:
space:
mode:
authorAsheem Mamoowala <asheem.mamoowala@mapbox.com>2017-06-20 11:09:19 -0700
committerAsheem Mamoowala <asheem.mamoowala@mapbox.com>2017-07-17 12:20:03 -0700
commit1d15ed64dcf78daa9459247127857513608c18ad (patch)
tree9ea07cfab134972c6b7f169b4153a881e9279fe6 /src/mbgl/style/sources/image_source_impl.hpp
parentb69f8338bbd18573b2a2a4282c4736f257526d03 (diff)
downloadqtlocation-mapboxgl-1d15ed64dcf78daa9459247127857513608c18ad.tar.gz
[core] Use shared pointer to manage Image source raster data and speed up change detection
Diffstat (limited to 'src/mbgl/style/sources/image_source_impl.hpp')
-rw-r--r--src/mbgl/style/sources/image_source_impl.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/style/sources/image_source_impl.hpp b/src/mbgl/style/sources/image_source_impl.hpp
index 5fd41ac6e6..e0999c34a5 100644
--- a/src/mbgl/style/sources/image_source_impl.hpp
+++ b/src/mbgl/style/sources/image_source_impl.hpp
@@ -13,17 +13,17 @@ class ImageSource::Impl : public Source::Impl {
public:
Impl(std::string id, std::array<LatLng, 4> coords);
Impl(const Impl& rhs, std::array<LatLng, 4> coords);
- Impl(const Impl& rhs, UnassociatedImage image);
+ Impl(const Impl& rhs, UnassociatedImage&& image);
~Impl() final;
- const UnassociatedImage& getImage() const;
+ std::shared_ptr<UnassociatedImage> getImage() const;
std::array<LatLng, 4> getCoordinates() const;
optional<std::string> getAttribution() const final;
private:
std::array<LatLng, 4> coords;
- UnassociatedImage image;
+ std::shared_ptr<UnassociatedImage> image;
};
} // namespace style