summaryrefslogtreecommitdiff
path: root/src/mbgl/tile/tile_observer.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-08-29 12:52:49 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-09-06 12:52:14 -0700
commit3635b9f1476ffd5d8f38a7abdf5742faef012850 (patch)
treee1ec24db4a0b90e7eb0c23768312183d1a2a526d /src/mbgl/tile/tile_observer.hpp
parent5b4f6335e384169bcd88633e38d59a500319a47b (diff)
downloadqtlocation-mapboxgl-3635b9f1476ffd5d8f38a7abdf5742faef012850.tar.gz
[core] Prepare style observer interfaces for source reloading
* 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.
Diffstat (limited to 'src/mbgl/tile/tile_observer.hpp')
-rw-r--r--src/mbgl/tile/tile_observer.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/tile/tile_observer.hpp b/src/mbgl/tile/tile_observer.hpp
index 96ded11fbb..ef412f0fb3 100644
--- a/src/mbgl/tile/tile_observer.hpp
+++ b/src/mbgl/tile/tile_observer.hpp
@@ -12,7 +12,7 @@ public:
virtual void onTileLoaded(Tile&, bool /*isNewTile*/) {}
virtual void onTileError(Tile&, std::exception_ptr) {}
- virtual void onNeedsRepaint() {}
+ virtual void onTileUpdated(Tile&) {}
};
} // namespace mbgl