From ce4270b01c692bcb1af64a774e2d595438057375 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 18 Feb 2016 13:52:53 -0800 Subject: [core] Convert MapContext to Map::Impl; eliminate indirection --- include/mbgl/map/map.hpp | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'include/mbgl/map') diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp index b70c388183..e33b8e49f3 100644 --- a/include/mbgl/map/map.hpp +++ b/include/mbgl/map/map.hpp @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include @@ -23,18 +22,13 @@ namespace mbgl { class FileSource; class View; -class MapData; -class MapContext; class SpriteImage; -class Transform; class PointAnnotation; class ShapeAnnotation; struct CameraOptions; struct AnimationOptions; class Map : private util::noncopyable { - friend class View; - public: explicit Map(View&, FileSource&, MapMode mapMode = MapMode::Continuous, @@ -176,19 +170,8 @@ public: void dumpDebugLogs() const; private: - View& view; - const std::unique_ptr transform; - const std::unique_ptr context; - MapData* data; - - enum class RenderState { - never, - partial, - fully - }; - - RenderState renderState = RenderState::never; - bool loading = false; + class Impl; + const std::unique_ptr impl; }; } // namespace mbgl -- cgit v1.2.1