summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2015-08-03 01:36:19 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2015-08-05 15:19:00 +0300
commitfa4636ffe4d2c00446292c229cd549cbaee9e20c (patch)
tree505e5fdad2051ebc47586e678935b1aa040853db /include
parent9fd7e883a7515f97ec4edd097a0db5cbebce3ca1 (diff)
downloadqtlocation-mapboxgl-fa4636ffe4d2c00446292c229cd549cbaee9e20c.tar.gz
Map::nudgeTransitions no longer depends on client information
Clients no longer need to provide data (eg. if gesturing or in a custom animation) to Map::nudgeTransitions(). Upon MapContext::renderSync(), a new atomic bool 'needsRepaint' in MapData allows thread-safe communication between Map and MapContext.
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/android/native_map_view.hpp2
-rw-r--r--include/mbgl/map/map.hpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/include/mbgl/android/native_map_view.hpp b/include/mbgl/android/native_map_view.hpp
index 1ea67a0da8..3ae3d6ed91 100644
--- a/include/mbgl/android/native_map_view.hpp
+++ b/include/mbgl/android/native_map_view.hpp
@@ -49,7 +49,7 @@ public:
void enableFps(bool enable);
void updateFps();
- void onInvalidate(bool inProgress);
+ void onInvalidate();
void resizeView(int width, int height);
void resizeFramebuffer(int width, int height);
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index e35a738d63..ae43dc8a8f 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -66,11 +66,11 @@ public:
using StillImageCallback = std::function<void(std::exception_ptr, std::unique_ptr<const StillImage>)>;
void renderStill(StillImageCallback callback);
- // Triggers a synchronous or asynchronous render.
- bool renderSync();
+ // Triggers a synchronous render.
+ void renderSync();
- // Nudges transitions one step, possibly notifying of the need for a rerender.
- void nudgeTransitions(bool forceRerender);
+ // Nudges transitions one step, possibly notifying of the need for a rerender, if any.
+ void nudgeTransitions();
// Notifies the Map thread that the state has changed and an update might be necessary.
void update(Update update);