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

Unified Diff: ui/gfx/color_space.h

Issue 2337423002: color: Initialize all members of gfx::ColorSpace (Closed)
Patch Set: don't convert invalid iccs 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
« no previous file with comments | « no previous file | ui/gfx/color_space.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_space.h
diff --git a/ui/gfx/color_space.h b/ui/gfx/color_space.h
index b7b93786a55309b9e54596ab68498093c01a4d19..6e351899e16fe3f4523a17f571c6e873d5eb6e26 100644
--- a/ui/gfx/color_space.h
+++ b/ui/gfx/color_space.h
@@ -133,10 +133,10 @@ class GFX_EXPORT ColorSpace {
bool operator<(const ColorSpace& other) const;
private:
- PrimaryID primaries_;
- TransferID transfer_;
- MatrixID matrix_;
- RangeID range_;
+ PrimaryID primaries_ = PrimaryID::UNSPECIFIED;
+ TransferID transfer_ = TransferID::UNSPECIFIED;
+ MatrixID matrix_ = MatrixID::UNSPECIFIED;
+ RangeID range_ = RangeID::LIMITED;
// Only used if primaries_ == PrimaryID::CUSTOM
float custom_primary_matrix_[12];
« no previous file with comments | « no previous file | ui/gfx/color_space.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698