[core] De-mutex GlyphAtlas and SpriteAtlas

- Expose glyph and icon information to workers via message interface.
 - Glyph/SpriteAtlas track which tiles have outstanding requests
    and send messages to them when glyphs/icons become available.
 - Remove obsolete "updateSymbolDependentTiles" pathway
 - Symbol preparation for a tile now depends on all glyphs becoming
    available before it can start.
 - Start tracking individual icons needed for a tile, although we don't
    do anything with the information yet.
 - Introduce typedef for GlyphID
This commit is contained in:
Chris Loer
2017-03-31 14:53:18 -07:00
committed by Chris Loer
parent 64beba3acc
commit 5cdf838a38
30 changed files with 863 additions and 665 deletions

View File

@@ -191,12 +191,6 @@ void Source::Impl::removeTiles() {
}
}
void Source::Impl::updateSymbolDependentTiles() {
for (auto& pair : tiles) {
pair.second->symbolDependenciesChanged();
}
}
void Source::Impl::reloadTiles() {
cache.clear();