Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3198)

Unified Diff: cc/tiles/tile_manager.cc

Issue 2336853002: cc: Plumb device color space through to rasterization (Closed)
Patch Set: Remove damage Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/tiles/tile_manager.h ('k') | cc/trees/layer_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « cc/tiles/tile_manager.h ('k') | cc/trees/layer_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698