summaryrefslogtreecommitdiff
path: root/platform/default/include/mbgl/map/map_snapshotter.hpp
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2020-02-24 18:08:09 +0200
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2020-03-05 17:43:37 +0200
commit09e69654fa7e7b1f14e3c6e0d140690935eed97d (patch)
tree906286433250debfdc467974fd53aac76f31adc8 /platform/default/include/mbgl/map/map_snapshotter.hpp
parent81e116d41a4ea1e3ed0d5e91e06541c3e8855a09 (diff)
downloadqtlocation-mapboxgl-09e69654fa7e7b1f14e3c6e0d140690935eed97d.tar.gz
[core] Refactor Snapshotter
Move renderer to a separate thread while keeping map on a client thread.
Diffstat (limited to 'platform/default/include/mbgl/map/map_snapshotter.hpp')
-rw-r--r--platform/default/include/mbgl/map/map_snapshotter.hpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/platform/default/include/mbgl/map/map_snapshotter.hpp b/platform/default/include/mbgl/map/map_snapshotter.hpp
index c1544c36ab..938c9bd4bf 100644
--- a/platform/default/include/mbgl/map/map_snapshotter.hpp
+++ b/platform/default/include/mbgl/map/map_snapshotter.hpp
@@ -1,7 +1,6 @@
#pragma once
#include <mbgl/util/image.hpp>
-#include <mbgl/util/thread.hpp>
#include <mbgl/util/optional.hpp>
#include <mbgl/util/geo.hpp>
@@ -26,12 +25,12 @@ class Style;
class MapSnapshotter {
public:
- MapSnapshotter(const std::pair<bool, std::string> style,
- const Size&,
- const float pixelRatio,
- const optional<CameraOptions> cameraOptions,
- const optional<LatLngBounds> region,
- const optional<std::string> localFontFamily,
+ MapSnapshotter(std::pair<bool, std::string> style,
+ Size size,
+ float pixelRatio,
+ optional<CameraOptions> cameraOptions,
+ optional<LatLngBounds> region,
+ optional<std::string> localFontFamily,
const ResourceOptions&);
~MapSnapshotter();
@@ -59,7 +58,7 @@ public:
private:
class Impl;
- std::unique_ptr<util::Thread<Impl>> impl;
+ std::unique_ptr<Impl> impl;
};
} // namespace mbgl