[core] TilePyramid has sorted render tiles

Thus we obviate unneeded extra sorting of render tiles at each render layer.
This commit is contained in:
Mikhail Pozdnyakov
2019-01-16 14:35:13 +02:00
parent e0aeeba10f
commit ac3d59862a
8 changed files with 29 additions and 20 deletions

View File

@@ -39,9 +39,7 @@ void RenderVectorSource::update(Immutable<style::Source::Impl> baseImpl_,
// TODO: this removes existing buckets, and will cause flickering.
// Should instead refresh tile data in place.
tilePyramid.tiles.clear();
tilePyramid.renderTiles.clear();
tilePyramid.cache.clear();
tilePyramid.clearAll();
}
// Allow clearing the tile pyramid first, before the early return in case
// the new tileset is not yet available or has an error in loading