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

Unified Diff: ui/gfx/icc_profile.cc

Issue 2912903003: color: Add color spin primaries for layout tests (Closed)
Patch Set: Rebase 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 | « ui/gfx/color_space_win.cc ('k') | ui/gfx/switches.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/icc_profile.cc
diff --git a/ui/gfx/icc_profile.cc b/ui/gfx/icc_profile.cc
index f22c9cfc09056ca90a471fb84e3708d7c7afc0ba..723d0624080104ab7f18940aa5defff7f2687bf8 100644
--- a/ui/gfx/icc_profile.cc
+++ b/ui/gfx/icc_profile.cc
@@ -132,10 +132,11 @@ ICCProfile ICCProfile::GetForcedProfile() {
ColorSpace generic_rgb_color_space(ColorSpace::PrimaryID::APPLE_GENERIC_RGB,
ColorSpace::TransferID::GAMMA18);
generic_rgb_color_space.GetICCProfile(&icc_profile);
- } else if (value == "bt2020-gamma18") {
- ColorSpace generic_rgb_color_space(ColorSpace::PrimaryID::BT2020,
- ColorSpace::TransferID::GAMMA18);
- generic_rgb_color_space.GetICCProfile(&icc_profile);
+ } else if (value == "color-spin-gamma24") {
+ ColorSpace color_spin_color_space(
+ ColorSpace::PrimaryID::WIDE_GAMUT_COLOR_SPIN,
+ ColorSpace::TransferID::GAMMA24);
+ color_spin_color_space.GetICCProfile(&icc_profile);
} else {
LOG(ERROR) << "Invalid forced color profile";
}
« no previous file with comments | « ui/gfx/color_space_win.cc ('k') | ui/gfx/switches.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698