[core] Reuse RasterBucket for ImageSource

This commit is contained in:
Asheem Mamoowala
2017-05-31 23:14:12 -07:00
parent 8b37a0704c
commit 5ff9d6e31b
6 changed files with 29 additions and 7 deletions

View File

@@ -137,8 +137,7 @@ void RenderImageSource::updateTiles(const TileParameters& parameters) {
}
bucket = std::make_unique<RasterBucket>(std::move(img));
} else {
// Reuse the bucket
bucket = std::make_unique<RasterBucket>(std::move(*bucket));
bucket->clear();
}
// Set Bucket Vertices, Indices, and segments