#pragma once #include #include #include namespace mbgl { namespace style { class Observer : public GlyphStoreObserver, public SpriteStoreObserver, public SourceObserver { public: /** * In addition to the individual glyph, sprite, and source events, the * following "rollup" events are provided for convenience. They are * strictly additive; e.g. when a source is loaded, both `onSourceLoaded` * and `onNeedsRepaint` will be called. */ void onNeedsRepaint() override {} virtual void onResourceError(std::exception_ptr) {} }; } // namespace style } // namespace mbgl