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

Unified Diff: cc/surfaces/surface_aggregator.h

Issue 2950183002: color: Use ICCProfile from display::Display instead of FromBestMonitor (Closed)
Patch Set: Use forced color profile in display::Display ctor Created 3 years, 6 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 | « no previous file | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_aggregator.h
diff --git a/cc/surfaces/surface_aggregator.h b/cc/surfaces/surface_aggregator.h
index 015e5f45e8855b1ef85dac9e66dbfca95baa1f49..9e7ce6f3109d78379677a47fc08841f33bea2542 100644
--- a/cc/surfaces/surface_aggregator.h
+++ b/cc/surfaces/surface_aggregator.h
@@ -153,11 +153,11 @@ class CC_SURFACES_EXPORT SurfaceAggregator {
// The color space for the root render pass. If this is different from
// |blending_color_space_|, then a final render pass to convert between
- // the two will be added.
- gfx::ColorSpace output_color_space_;
+ // the two will be added. This space must always be valid.
+ gfx::ColorSpace output_color_space_ = gfx::ColorSpace::CreateSRGB();
// The color space in which blending is done, used for all non-root render
- // passes.
- gfx::ColorSpace blending_color_space_;
+ // passes. This space must always be valid.
+ gfx::ColorSpace blending_color_space_ = gfx::ColorSpace::CreateSRGB();
// The id for the final color conversion render pass.
RenderPassId color_conversion_render_pass_id_ = 0;
« no previous file with comments | « no previous file | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698