Make GlyphStore observable

GlyphStore will notify observers when a glyph range is loaded. By now
the notification is generic, but could be fine grained, causing the
processing of buckets depending on this particular range.
This commit is contained in:
Thiago Marcos P. Santos
2015-04-28 10:21:49 +03:00
parent 1455e5e53c
commit f10839bac2
4 changed files with 42 additions and 2 deletions

View File

@@ -73,6 +73,10 @@ void ResourceLoader::update(MapData& data,
}
}
void ResourceLoader::onGlyphRangeLoaded() {
emitTileDataChanged();
}
void ResourceLoader::onSourceLoaded() {
emitTileDataChanged();
}