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

Unified Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 2092533002: Clean up gfx::ColorProfile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: content/renderer/renderer_blink_platform_impl.cc
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
index 18d849e8e00e41778d01a0a9a70e06c2ba167eba..56feeefb9cf1f34b9ea3a1bb86d9fea73da34e6d 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -858,7 +858,7 @@ void RendererBlinkPlatformImpl::screenColorProfile(
#else
// On other platforms, the primary monitor color profile can be read
// directly.
- gfx::ColorProfile profile;
+ gfx::ColorProfile profile = gfx::ColorProfile::GetFromDeepestMonitor();
*to_profile = profile.profile();
#endif
}

Powered by Google App Engine
This is Rietveld 408576698