Index: cc/resources/tile_manager.cc |
diff --git a/cc/resources/tile_manager.cc b/cc/resources/tile_manager.cc |
index 9871acc18e884ce1c27cc7489356753d87f9bb6d..2b247aa20856e22a2ba12b321ce0d3dd6f2e9d7c 100644 |
--- a/cc/resources/tile_manager.cc |
+++ b/cc/resources/tile_manager.cc |
@@ -362,6 +362,11 @@ void TileManager::PrepareTiles( |
scoped_ptr<RasterTilePriorityQueue> raster_priority_queue( |
client_->BuildRasterQueue(global_state_.tree_priority, |
RasterTilePriorityQueue::Type::ALL)); |
+ // Inform the client that will likely require a draw if the top tile is |
+ // required for draw. |
+ client_->SetIsLikelyToRequireADraw( |
+ !raster_priority_queue->IsEmpty() && |
+ raster_priority_queue->Top()->required_for_draw()); |
AssignGpuMemoryToTiles(raster_priority_queue.get(), |
scheduled_raster_task_limit_, |
&tiles_that_need_to_be_rasterized); |