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

Unified Diff: third_party/WebKit/Source/platform/graphics/ColorSpaceGamut.cpp

Issue 2954793002: color: Replace more instances of ICCProfile with ColorSpace (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
« no previous file with comments | « content/renderer/render_widget.cc ('k') | third_party/WebKit/public/platform/WebScreenInfo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/ColorSpaceGamut.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ColorSpaceGamut.cpp b/third_party/WebKit/Source/platform/graphics/ColorSpaceGamut.cpp
index 452a1979661fac0a0e8b80a335fc78a17f012e02..d83dabfca1c8f1df86464085028164f95a9e131e 100644
--- a/third_party/WebKit/Source/platform/graphics/ColorSpaceGamut.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ColorSpaceGamut.cpp
@@ -12,12 +12,12 @@ namespace blink {
namespace ColorSpaceUtilities {
ColorSpaceGamut GetColorSpaceGamut(const WebScreenInfo& screen_info) {
- const gfx::ICCProfile& profile = screen_info.icc_profile;
- if (profile == gfx::ICCProfile())
+ const gfx::ColorSpace& color_space = screen_info.color_space;
+ if (!color_space.IsValid())
return ColorSpaceGamut::kUnknown;
return ColorSpaceUtilities::GetColorSpaceGamut(
- profile.GetColorSpace().ToSkColorSpace().get());
+ color_space.ToSkColorSpace().get());
}
ColorSpaceGamut GetColorSpaceGamut(SkColorSpace* color_space) {
« no previous file with comments | « content/renderer/render_widget.cc ('k') | third_party/WebKit/public/platform/WebScreenInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698