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

Unified Diff: cc/tiles/tile_manager.cc

Issue 2525453002: Raster: Allow a RasterSource to specify its color space (Closed)
Patch Set: Only set implied space when color correct rendering is disabled Created 4 years 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
Index: cc/tiles/tile_manager.cc
diff --git a/cc/tiles/tile_manager.cc b/cc/tiles/tile_manager.cc
index 9429510793ed313dac531fe45ec0e725dca0d95e..b8bdcb16615285b7c99e05a93041950146f5eb37 100644
--- a/cc/tiles/tile_manager.cc
+++ b/cc/tiles/tile_manager.cc
@@ -826,7 +826,7 @@ void TileManager::ScheduleTasks(
graph_.Reset();
- gfx::ColorSpace color_space = client_->GetTileColorSpace();
+ gfx::ColorSpace target_color_space = client_->GetTileColorSpace();
scoped_refptr<TileTask> required_for_activation_done_task =
CreateTaskSetFinishedTask(
@@ -846,7 +846,11 @@ void TileManager::ScheduleTasks(
DCHECK(!tile->draw_info().resource_);
if (!tile->raster_task_)
- tile->raster_task_ = CreateRasterTask(prioritized_tile, color_space);
+ tile->raster_task_ = CreateRasterTask(
+ prioritized_tile,
+ prioritized_tile.raster_source()->HasImpliedColorSpace()
+ ? prioritized_tile.raster_source()->GetImpliedColorSpace()
+ : target_color_space);
TileTask* task = tile->raster_task_.get();
« no previous file with comments | « cc/resources/resource_provider.cc ('k') | third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698