summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/update_parameters.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-05-02 11:30:07 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-05-04 09:59:56 -0700
commite7d2796762c3ba05e824177969c501ab2370336f (patch)
tree22caa9990d87f94c68b346993b5956b6792b5dbe /src/mbgl/renderer/update_parameters.hpp
parent89f1ffc6d29d5631dfd322834397ec2247c5c9d7 (diff)
downloadqtlocation-mapboxgl-e7d2796762c3ba05e824177969c501ab2370336f.tar.gz
[core] Omnibus Style::update method
Combine Style::cascade, recalculate, relayout, and updateTiles into a single method. This allows multiple loops over sources and layers to be consolidated and prepares for additional Style-Map decoupling: rather than tracking pending updates via a set of Update flags held by the Map and passed to the Style, the Style can use its own data to determine what to update.
Diffstat (limited to 'src/mbgl/renderer/update_parameters.hpp')
-rw-r--r--src/mbgl/renderer/update_parameters.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/mbgl/renderer/update_parameters.hpp b/src/mbgl/renderer/update_parameters.hpp
new file mode 100644
index 0000000000..ae54ac09e7
--- /dev/null
+++ b/src/mbgl/renderer/update_parameters.hpp
@@ -0,0 +1,26 @@
+#pragma once
+
+#include <mbgl/map/mode.hpp>
+#include <mbgl/map/update.hpp>
+
+namespace mbgl {
+
+class TransformState;
+class Scheduler;
+class FileSource;
+class AnnotationManager;
+
+class UpdateParameters {
+public:
+ const MapMode mode;
+ const Update updateFlags;
+ const float pixelRatio;
+ const MapDebugOptions debugOptions;
+ const TimePoint timePoint;
+ const TransformState& transformState;
+ Scheduler& scheduler;
+ FileSource& fileSource;
+ AnnotationManager& annotationManager;
+};
+
+} // namespace mbgl