diff --git a/gyp/install.gypi b/gyp/install.gypi index 7b8cf6220..d46900dff 100644 --- a/gyp/install.gypi +++ b/gyp/install.gypi @@ -23,6 +23,7 @@ ['OS == "linux"', { 'other_ldflags': [ '<@(png_static_libs)', + '<@(jpeg_static_libs)', '<@(glfw3_static_libs)', '<@(glfw3_ldflags)', ] diff --git a/gyp/mbgl-linux.gypi b/gyp/mbgl-linux.gypi index 28d8fc33a..aee928685 100644 --- a/gyp/mbgl-linux.gypi +++ b/gyp/mbgl-linux.gypi @@ -8,7 +8,7 @@ 'variables': { 'cflags_cc': [ '<@(png_cflags)', - '<@(jpeg_cflags)', + '<@(jpeg_cflags)', '<@(uv_cflags)', '<@(curl_cflags)', '<@(nu_cflags)', diff --git a/include/mbgl/geometry/glyph_atlas.hpp b/include/mbgl/geometry/glyph_atlas.hpp index 639c6cc51..7b3c223fe 100644 --- a/include/mbgl/geometry/glyph_atlas.hpp +++ b/include/mbgl/geometry/glyph_atlas.hpp @@ -28,8 +28,6 @@ private: const SDFGlyph& glyph); public: GlyphAtlas(uint16_t width, uint16_t height); - ~GlyphAtlas(); - Rect addGlyph(uint64_t tile_id, const std::string& face_name, const SDFGlyph& glyph); @@ -46,7 +44,7 @@ private: std::mutex mtx; BinPack bin; std::map> index; - char *const data = nullptr; + std::unique_ptr data; std::atomic dirty; uint32_t texture = 0; }; diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp index aa1274c75..9d00d0f52 100644 --- a/include/mbgl/map/map.hpp +++ b/include/mbgl/map/map.hpp @@ -79,7 +79,6 @@ public: void resize(uint16_t width, uint16_t height, float ratio, uint16_t fb_width, uint16_t fb_height); // Styling - const std::set> getActiveSources() const; void setAppliedClasses(const std::vector &classes); void toggleClass(const std::string &name); const std::vector &getAppliedClasses() const; @@ -133,24 +132,12 @@ public: // Call this when the network reachability changed. void setReachability(bool status); -public: inline const TransformState &getState() const { return state; } - inline util::ptr