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.
This commit is contained in:
@@ -101,6 +101,14 @@ public:
|
||||
defaultTransitionDelay = delay;
|
||||
}
|
||||
|
||||
inline bool getNeedsRepaint() const {
|
||||
return needsRepaint;
|
||||
}
|
||||
|
||||
inline void setNeedsRepaint(const bool needsRepaint_) {
|
||||
needsRepaint = needsRepaint_;
|
||||
}
|
||||
|
||||
util::exclusive<AnnotationManager> getAnnotationManager() {
|
||||
return util::exclusive<AnnotationManager>(
|
||||
&annotationManager,
|
||||
@@ -124,6 +132,7 @@ private:
|
||||
std::atomic<Duration> defaultFadeDuration;
|
||||
std::atomic<Duration> defaultTransitionDuration;
|
||||
std::atomic<Duration> defaultTransitionDelay;
|
||||
std::atomic<bool> needsRepaint;
|
||||
|
||||
// TODO: make private
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user