[core] Don't share TransformState reference

This commit is contained in:
John Firebaugh
2017-05-30 17:30:05 -07:00
parent f983c2716b
commit 97eb62fe7c
2 changed files with 5 additions and 5 deletions

View File

@@ -249,6 +249,7 @@ void Map::Impl::render(View& view) {
pixelRatio,
debugOptions,
timePoint,
transform.getState(),
style->getGlyphURL(),
style->spriteLoaded,
style->getTransitionOptions(),
@@ -258,8 +259,7 @@ void Map::Impl::render(View& view) {
style->getLayerImpls(),
scheduler,
fileSource,
annotationManager,
transform.getState()
annotationManager
});
updateFlags = Update::Nothing;

View File

@@ -1,11 +1,11 @@
#pragma once
#include <mbgl/map/mode.hpp>
#include <mbgl/map/update.hpp>
#include <mbgl/map/transform_state.hpp>
#include <mbgl/util/chrono.hpp>
namespace mbgl {
class TransformState;
class Scheduler;
class FileSource;
class AnnotationManager;
@@ -16,6 +16,7 @@ public:
const float pixelRatio;
const MapDebugOptions debugOptions;
const TimePoint timePoint;
const TransformState transformState;
const std::string glyphURL;
const bool spriteLoaded;
@@ -28,7 +29,6 @@ public:
Scheduler& scheduler;
FileSource& fileSource;
AnnotationManager& annotationManager;
const TransformState& transformState;
};
} // namespace mbgl