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

Unified Diff: cc/tiles/tile_manager.cc

Issue 2336853002: cc: Plumb device color space through to rasterization (Closed)
Patch Set: 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
« cc/tiles/tile.h ('K') | « cc/tiles/tile_manager.h ('k') | no next file » | 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 e0968d19392183453a4e51cce3b7a5d182445889..db6ec961fbbf4633d29d280f97b1d49c23c41023 100644
--- a/cc/tiles/tile_manager.cc
+++ b/cc/tiles/tile_manager.cc
@@ -942,7 +942,7 @@ scoped_refptr<TileTask> TileManager::CreateRasterTask(
} else {
resource = resource_pool_->AcquireResource(tile->desired_texture_size(),
DetermineResourceFormat(tile),
- gfx::ColorSpace());
+ tile->color_space());
ccameron 2016/09/12 23:44:24 This is where we need to get the ColorSpace plumbe
}
// For LOW_RESOLUTION tiles, we don't draw or predecode images.
@@ -1028,6 +1028,7 @@ void TileManager::OnRasterTaskCompleted(
}
ScopedTilePtr TileManager::CreateTile(const Tile::CreateInfo& info,
+ const gfx::ColorSpace& color_space,
int layer_id,
int source_frame_number,
int flags) {
@@ -1035,7 +1036,7 @@ ScopedTilePtr TileManager::CreateTile(const Tile::CreateInfo& info,
// tiles.
DCHECK(tile_task_manager_);
ScopedTilePtr tile(
- new Tile(this, info, layer_id, source_frame_number, flags));
+ new Tile(this, info, color_space, layer_id, source_frame_number, flags));
DCHECK(tiles_.find(tile->id()) == tiles_.end());
tiles_[tile->id()] = tile.get();
« cc/tiles/tile.h ('K') | « cc/tiles/tile_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698