diff --git a/.gitignore b/.gitignore index 589b16675..98d9e2828 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,6 @@ /config.gypi /config-ios.gypi /config-android.gypi -/config/constants_local.cpp /build /include/mbgl/shader/shaders.hpp /src/shader/shaders_gl.cpp diff --git a/gyp/mbgl-core.gypi b/gyp/mbgl-core.gypi index 022480350..279051968 100644 --- a/gyp/mbgl-core.gypi +++ b/gyp/mbgl-core.gypi @@ -21,7 +21,6 @@ }, 'sources': [ ' -#include -#include -#include #include #include #include @@ -18,9 +15,11 @@ #include #include #include +#include namespace mbgl { +class Painter; class GlyphStore; class LayerDescription; class Sprite; @@ -31,10 +30,10 @@ class StyleSource; class TexturePool; class FileSource; class View; +class GlyphAtlas; +class SpriteAtlas; class Map : private util::noncopyable { - typedef void (*stop_callback)(void *); - public: explicit Map(View&, FileSource&); ~Map(); @@ -45,9 +44,8 @@ public: // Stop the map render thread. This call will block until the map rendering thread stopped. // The optional callback function will be invoked repeatedly until the map thread is stopped. // The callback function should wait until it is woken up again by view.notify(), otherwise - // this will be a busy waiting loop. The optional data parameter will be passed to the callback - // function. - void stop(stop_callback cb = nullptr, void *data = nullptr); + // this will be a busy waiting loop. + void stop(std::function callback = std::function()); // Pauses the render thread. The render thread will stop running but will not be terminated and will not lose state until resumed. void pause(bool waitForPause = false); @@ -89,8 +87,6 @@ public: void setStyleURL(const std::string &url); void setStyleJSON(std::string newStyleJSON, const std::string &base = ""); std::string getStyleJSON() const; - void setAccessToken(std::string accessToken); - std::string getAccessToken() const; // Transition void cancelTransitions(); @@ -131,9 +127,6 @@ public: void toggleDebug(); bool getDebug() const; - // Call this when the network reachability changed. - void setReachability(bool status); - inline const TransformState &getState() const { return state; } inline timestamp getTime() const { return animationTime; } @@ -202,17 +195,16 @@ private: FileSource& fileSource; util::ptr