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

Unified Diff: cc/surfaces/display.h

Issue 2891503003: color: Initialize renderer color space in testing (Closed)
Patch Set: Created 3 years, 7 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 | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display.h
diff --git a/cc/surfaces/display.h b/cc/surfaces/display.h
index 7718ffe32ea563917d9b9c55b064eeffbf9ccef4..314cb405ecc09be589ede5976d850fe8e4013f71 100644
--- a/cc/surfaces/display.h
+++ b/cc/surfaces/display.h
@@ -109,8 +109,8 @@ class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
SurfaceId current_surface_id_;
gfx::Size current_surface_size_;
float device_scale_factor_ = 1.f;
- gfx::ColorSpace blending_color_space_;
- gfx::ColorSpace device_color_space_;
+ gfx::ColorSpace blending_color_space_ = gfx::ColorSpace::CreateSRGB();
+ gfx::ColorSpace device_color_space_ = gfx::ColorSpace::CreateSRGB();
bool visible_ = false;
bool swapped_since_resize_ = false;
bool output_is_secure_ = false;
« no previous file with comments | « no previous file | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698