Index: cc/tiles/tile_manager.cc |
diff --git a/cc/tiles/tile_manager.cc b/cc/tiles/tile_manager.cc |
index f7c3a3b8f69a1834de6610fa3cb42f493fe804ac..5cbfa1667640e099f780e37565e85e825433ddbc 100644 |
--- a/cc/tiles/tile_manager.cc |
+++ b/cc/tiles/tile_manager.cc |
@@ -787,6 +787,8 @@ void TileManager::ScheduleTasks( |
graph_.Reset(); |
+ gfx::ColorSpace color_space = client_->GetTileColorSpace(); |
+ |
scoped_refptr<TileTask> required_for_activation_done_task = |
CreateTaskSetFinishedTask( |
&TileManager::DidFinishRunningTileTasksRequiredForActivation); |
@@ -805,7 +807,7 @@ void TileManager::ScheduleTasks( |
DCHECK(!tile->draw_info().resource_); |
if (!tile->raster_task_) |
- tile->raster_task_ = CreateRasterTask(prioritized_tile); |
+ tile->raster_task_ = CreateRasterTask(prioritized_tile, color_space); |
TileTask* task = tile->raster_task_.get(); |
@@ -925,7 +927,8 @@ void TileManager::ScheduleTasks( |
} |
scoped_refptr<TileTask> TileManager::CreateRasterTask( |
- const PrioritizedTile& prioritized_tile) { |
+ const PrioritizedTile& prioritized_tile, |
+ const gfx::ColorSpace& color_space) { |
Tile* tile = prioritized_tile.tile(); |
// Get the resource. |
@@ -944,7 +947,7 @@ scoped_refptr<TileTask> TileManager::CreateRasterTask( |
} else { |
resource = resource_pool_->AcquireResource(tile->desired_texture_size(), |
DetermineResourceFormat(tile), |
- gfx::ColorSpace()); |
+ color_space); |
} |
// For LOW_RESOLUTION tiles, we don't draw or predecode images. |