| Index: cc/tile_manager.cc
|
| diff --git a/cc/tile_manager.cc b/cc/tile_manager.cc
|
| index 2d7a8a62af105d5e24e7fbb7b8c5399da7bbf580..4482b36eb7429444c830221b8dd60ce4c0acc8b0 100644
|
| --- a/cc/tile_manager.cc
|
| +++ b/cc/tile_manager.cc
|
| @@ -89,7 +89,7 @@ TileManager::~TileManager() {
|
| // This should finish all pending tasks and release any uninitialized
|
| // resources.
|
| raster_worker_pool_.reset();
|
| - CheckForCompletedSetPixels();
|
| + CheckForCompletedTextures();
|
| DCHECK(tiles_with_pending_set_pixels_.size() == 0);
|
| DCHECK(tiles_.size() == 0);
|
| }
|
| @@ -237,7 +237,7 @@ void TileManager::ManageTiles() {
|
| DispatchMoreTasks();
|
| }
|
|
|
| -void TileManager::CheckForCompletedSetPixels() {
|
| +void TileManager::CheckForCompletedTextures() {
|
| while (!tiles_with_pending_set_pixels_.empty()) {
|
| Tile* tile = tiles_with_pending_set_pixels_.front();
|
| DCHECK(tile->managed_state().resource);
|
| @@ -248,6 +248,10 @@ void TileManager::CheckForCompletedSetPixels() {
|
| break;
|
| }
|
|
|
| + if (tile->priority(ACTIVE_TREE).distance_to_visible_in_pixels == 0 &&
|
| + tile->priority(ACTIVE_TREE).resolution == HIGH_RESOLUTION)
|
| + client_->DidUploadVisibleHighResolutionTile();
|
| +
|
| // It's now safe to release the pixel buffer.
|
| resource_pool_->resource_provider()->releasePixelBuffer(
|
| tile->managed_state().resource->id());
|
|
|