summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/renderer_state.cpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2018-10-17 13:38:11 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2018-10-19 12:05:16 +0200
commitea51b11dccdc117c7dc43ffd3b3d0f969f59799f (patch)
treeb46c023ebe457cf0daebdd22abb42c1a4983c92f /src/mbgl/renderer/renderer_state.cpp
parentb94be6e68f666410852aebd638782601162809d6 (diff)
downloadqtlocation-mapboxgl-ea51b11dccdc117c7dc43ffd3b3d0f969f59799f.tar.gz
[core] Introduce mbgl::RendererState
Diffstat (limited to 'src/mbgl/renderer/renderer_state.cpp')
-rw-r--r--src/mbgl/renderer/renderer_state.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mbgl/renderer/renderer_state.cpp b/src/mbgl/renderer/renderer_state.cpp
new file mode 100644
index 0000000000..dc5c4c1292
--- /dev/null
+++ b/src/mbgl/renderer/renderer_state.cpp
@@ -0,0 +1,10 @@
+#include <mbgl/renderer/renderer_state.hpp>
+#include <mbgl/renderer/update_parameters.hpp>
+
+namespace mbgl {
+
+CameraOptions RendererState::getCameraOptions(UpdateParameters& updateParameters, const EdgeInsets& padding) {
+ return updateParameters.transformState.getCameraOptions(padding);
+}
+
+} // namespace mbgl