* Renamed {Source,Tile}Observer::onNeedsRepaint to onTileUpdated. Messages should be in terms of what happened to the observed object, not in terms of what the observer needs to do. This also removes a confusing overlap of virtual methods on StyleObserver.
* Added style::Observer::onUpdate(Update). This is also a violation of the above rule, but I'm hopeful that it will disappear when update batching is implemented.
22 lines
530 B
C++
22 lines
530 B
C++
#pragma once
|
|
|
|
#include <mbgl/text/glyph_store_observer.hpp>
|
|
#include <mbgl/sprite/sprite_store_observer.hpp>
|
|
#include <mbgl/style/source_observer.hpp>
|
|
#include <mbgl/map/update.hpp>
|
|
|
|
namespace mbgl {
|
|
namespace style {
|
|
|
|
class Observer : public GlyphStoreObserver,
|
|
public SpriteStoreObserver,
|
|
public SourceObserver {
|
|
public:
|
|
virtual void onUpdate(Update) {}
|
|
virtual void onStyleError() {}
|
|
virtual void onResourceError(std::exception_ptr) {}
|
|
};
|
|
|
|
} // namespace style
|
|
} // namespace mbgl
|