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

Unified Diff: ui/gfx/icc_profile.h

Issue 2950183002: color: Use ICCProfile from display::Display instead of FromBestMonitor (Closed)
Patch Set: 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
Index: ui/gfx/icc_profile.h
diff --git a/ui/gfx/icc_profile.h b/ui/gfx/icc_profile.h
index 07f6fcb62a842bfaa42c99243a91195bdfd2c923..d5d5e2e6c1e111ff9b5890ff5a42b3ba3fc87d37 100644
--- a/ui/gfx/icc_profile.h
+++ b/ui/gfx/icc_profile.h
@@ -41,6 +41,9 @@ class COLOR_SPACE_EXPORT ICCProfile {
// Returns true if this profile was successfully parsed by SkICC.
bool IsValid() const;
+ // Create ICC profile representing the sRGB color space.
+ static ICCProfile CreateSRGB();
+
// Returns the color profile of the monitor that can best represent color.
// This profile should be used for creating content that does not know on
// which monitor it will be displayed.
« ui/aura/window_tree_host.cc ('K') | « ui/display/display.cc ('k') | ui/gfx/icc_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698