[core] Replace GlyphRangeSet in onGlyphsAvailable with optionals in the map

GlyphRangeSet isn't keyed by FontStack, so using it to indicate that a particular range was loaded could have produced false positives.
This commit is contained in:
John Firebaugh
2017-04-06 09:20:07 -07:00
parent 09a2271576
commit a50d7a331b
10 changed files with 56 additions and 93 deletions

View File

@@ -133,8 +133,8 @@ void GeometryTile::onError(std::exception_ptr err) {
observer->onTileError(*this, err);
}
void GeometryTile::onGlyphsAvailable(GlyphPositionMap glyphPositions, GlyphRangeSet loadedRanges) {
worker.invoke(&GeometryTileWorker::onGlyphsAvailable, std::move(glyphPositions), std::move(loadedRanges));
void GeometryTile::onGlyphsAvailable(GlyphPositionMap glyphPositions) {
worker.invoke(&GeometryTileWorker::onGlyphsAvailable, std::move(glyphPositions));
}
void GeometryTile::getGlyphs(GlyphDependencies glyphDependencies) {