diff options
Diffstat (limited to 'src/mbgl/style')
-rw-r--r-- | src/mbgl/style/style.cpp | 12 | ||||
-rw-r--r-- | src/mbgl/style/style.hpp | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/mbgl/style/style.cpp b/src/mbgl/style/style.cpp index b68ce496b8..3c87c4c9b7 100644 --- a/src/mbgl/style/style.cpp +++ b/src/mbgl/style/style.cpp @@ -262,4 +262,16 @@ void Style::emitResourceLoadingFailed(std::exception_ptr error) { } } +void Style::dumpDebugLogs() const { + for (const auto& source : sources) { + source->dumpDebugLogs(); + } + + if (!sprite) { + Log::Info(Event::General, "no sprite loaded"); + } else { + sprite->dumpDebugLogs(); + } +} + } diff --git a/src/mbgl/style/style.hpp b/src/mbgl/style/style.hpp index f4b2aac480..c9261bd6c4 100644 --- a/src/mbgl/style/style.hpp +++ b/src/mbgl/style/style.hpp @@ -69,6 +69,8 @@ public: void addLayer(util::ptr<StyleLayer>, const std::string& beforeLayerID); void removeLayer(const std::string& layerID); + void dumpDebugLogs() const; + MapData& data; std::unique_ptr<GlyphStore> glyphStore; std::unique_ptr<GlyphAtlas> glyphAtlas; |