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

Unified Diff: ui/gfx/icc_profile.h

Issue 2950183002: color: Use ICCProfile from display::Display instead of FromBestMonitor (Closed)
Patch Set: Use forced color profile in display::Display ctor 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
« no previous file with comments | « ui/gfx/color_space.cc ('k') | ui/gfx/icc_profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/icc_profile.h
diff --git a/ui/gfx/icc_profile.h b/ui/gfx/icc_profile.h
index 07f6fcb62a842bfaa42c99243a91195bdfd2c923..691d2f6992fb3e120d83d3970c4f8ee3054f18ed 100644
--- a/ui/gfx/icc_profile.h
+++ b/ui/gfx/icc_profile.h
@@ -57,6 +57,11 @@ class COLOR_SPACE_EXPORT ICCProfile {
// Create directly from profile data.
static ICCProfile FromData(const void* icc_profile, size_t size);
+ // TODO(ccameron): Move this flag to display::Display, like forcing device
+ // scale factor.
+ static bool HasForcedProfile();
+ static ICCProfile GetForcedProfile();
+
// Return a ColorSpace that references this ICCProfile. ColorTransforms
// created using this ColorSpace will match this ICCProfile precisely.
const ColorSpace& GetColorSpace() const;
@@ -103,9 +108,6 @@ class COLOR_SPACE_EXPORT ICCProfile {
size_t size,
uint64_t id);
- static bool HasForcedProfile();
- static ICCProfile GetForcedProfile();
-
void ComputeColorSpaceAndCache();
// This globally identifies this ICC profile. It is used to look up this ICC
« no previous file with comments | « ui/gfx/color_space.cc ('k') | ui/gfx/icc_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698