[core] change bool to enum class bool TileLoadState

This commit is contained in:
Konstantin Käfer
2016-09-06 12:23:35 +02:00
parent 8edf995946
commit 426242fe41
10 changed files with 28 additions and 21 deletions

View File

@@ -469,12 +469,12 @@ void Style::onSourceError(Source& source, std::exception_ptr error) {
observer->onResourceError(error);
}
void Style::onTileLoaded(Source& source, const OverscaledTileID& tileID, bool isNewTile) {
if (isNewTile) {
void Style::onTileLoaded(Source& source, const OverscaledTileID& tileID, TileLoadState loadState) {
if (loadState == TileLoadState::First) {
shouldReparsePartialTiles = true;
}
observer->onTileLoaded(source, tileID, isNewTile);
observer->onTileLoaded(source, tileID, loadState);
observer->onUpdate(Update::Repaint);
}