From 1ee0055710b31de4fa51a7cc58efe77973255114 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 14 Apr 2016 16:50:37 -0700 Subject: [PATCH] [core] Eliminate MapData --- src/mbgl/annotation/annotation_tile.cpp | 3 +- src/mbgl/map/map.cpp | 92 +++++++++++++++---------- src/mbgl/map/map_data.hpp | 64 ----------------- src/mbgl/renderer/painter.cpp | 1 - src/mbgl/renderer/painter_circle.cpp | 1 - src/mbgl/renderer/painter_debug.cpp | 1 - src/mbgl/renderer/painter_line.cpp | 1 - src/mbgl/renderer/painter_symbol.cpp | 1 - src/mbgl/source/source.cpp | 1 - src/mbgl/style/style.cpp | 1 - test/style/style.cpp | 1 - 11 files changed, 56 insertions(+), 111 deletions(-) delete mode 100644 src/mbgl/map/map_data.hpp diff --git a/src/mbgl/annotation/annotation_tile.cpp b/src/mbgl/annotation/annotation_tile.cpp index a8195d0dc81..176b7c11f16 100644 --- a/src/mbgl/annotation/annotation_tile.cpp +++ b/src/mbgl/annotation/annotation_tile.cpp @@ -1,7 +1,8 @@ #include +#include #include -#include #include + #include namespace mbgl { diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp index 085082776c0..d632ac805a7 100644 --- a/src/mbgl/map/map.cpp +++ b/src/mbgl/map/map.cpp @@ -3,9 +3,9 @@ #include #include #include -#include #include #include +#include #include #include #include @@ -49,13 +49,17 @@ class Map::Impl : public Style::Observer { RenderState renderState = RenderState::never; Transform transform; - std::unique_ptr dataPtr; - MapData& data; + const MapMode mode; + const GLContextMode contextMode; + const float pixelRatio; + + MapDebugOptions debugOptions { MapDebugOptions::NoDebug }; gl::GLObjectStore glObjectStore; Update updateFlags = Update::Nothing; util::AsyncTask asyncUpdate; + std::unique_ptr annotationManager; std::unique_ptr texturePool; std::unique_ptr painter; std::unique_ptr