[core] Forward ImageManagerObserver::onRemoveUnusedStyleImages to MapObserver interface

This commit is contained in:
Alexander Shalamov
2019-05-06 11:31:23 +03:00
parent d24524440c
commit 100eb61fa4
6 changed files with 18 additions and 0 deletions

View File

@@ -48,6 +48,9 @@ public:
virtual void onSourceChanged(style::Source&) {}
virtual void onDidBecomeIdle() {}
virtual void onStyleImageMissing(const std::string&) {}
// This method should return true if unused image can be removed,
// false otherwise. By default, unused image will be removed.
virtual bool onCanRemoveUnusedStyleImage(const std::string&) { return true; }
};
} // namespace mbgl