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

Unified Diff: ui/gfx/icc_profile.cc

Issue 2183953002: Add some actual data to gfx::ColorSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: ui/gfx/icc_profile.cc
diff --git a/ui/gfx/icc_profile.cc b/ui/gfx/icc_profile.cc
index fd6f4c899d8e46c85b526c030413b74cf652c902..651ea6d33afe9e26c0705ca1cd0cb684306b43c6 100644
--- a/ui/gfx/icc_profile.cc
+++ b/ui/gfx/icc_profile.cc
@@ -103,8 +103,8 @@ const std::vector<char>& ICCProfile::GetData() const {
}
ColorSpace ICCProfile::GetColorSpace() const {
- ColorSpace color_space;
- color_space.valid_ = true;
+ ColorSpace color_space(ColorSpace::PRI_CUSTOM, ColorSpace::TRC_CUSTOM,
+ ColorSpace::SPC_RGB, true);
color_space.icc_profile_id_ = id_;
// Move this ICC profile to the most recently used end of the cache.

Powered by Google App Engine
This is Rietveld 408576698