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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2752523006: cc: Use SkCreateColorSpaceXformCanvas for color transforms (Closed)
Patch Set: Allow to link Created 3 years, 9 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
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 0051d95f68e7e3f7fdf3ffebbd74f09ecf87079f..0ca1a7ca2588ba2786e3f5e5a1ee2ec86857a6f6 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1319,6 +1319,8 @@ void LayerTreeHostImpl::SetIsLikelyToRequireADraw(
}
gfx::ColorSpace LayerTreeHostImpl::GetRasterColorSpace() const {
+ if (!settings_.enable_color_correct_rasterization)
+ return gfx::ColorSpace();
if (!sync_tree())
return gfx::ColorSpace::CreateSRGB();
return sync_tree()->raster_color_space();

Powered by Google App Engine
This is Rietveld 408576698