[core] Avoid making a new copy of layers for redoPlacement

This commit is contained in:
John Firebaugh
2015-12-04 12:26:21 -08:00
parent cdd129335c
commit 203b443d26
5 changed files with 15 additions and 16 deletions

View File

@@ -166,7 +166,7 @@ void VectorTileData::redoPlacement(const PlacementConfig newConfig) {
void VectorTileData::redoPlacement() {
workRequest.reset();
workRequest = worker.redoPlacement(tileWorker, style.getLayers(), buckets, targetConfig, [this, config = targetConfig] {
workRequest = worker.redoPlacement(tileWorker, buckets, targetConfig, [this, config = targetConfig] {
workRequest.reset();
// Persist the configuration we just placed so that we can later check whether we need to