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

Unified Diff: content/shell/renderer/layout_test/layout_test_content_renderer_client.cc

Issue 2309773004: Layout tests: Use sRGB color space on Mac (Closed)
Patch Set: Only change Mac Created 4 years, 3 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 | « no previous file | content/test/layouttest_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
diff --git a/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc b/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
index 3e2cb1ad0bea753cbde6a57b6e5c090259fb9262..d3797b083b6394ab9e77940cd66c9d9e6592b5b5 100644
--- a/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
+++ b/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
@@ -231,12 +231,9 @@ std::unique_ptr<gfx::ICCProfile>
LayoutTestContentRendererClient::GetImageDecodeColorProfile() {
// TODO(ccameron): Make all platforms use the same color profile for layout
// tests.
-#if defined(OS_WIN)
+#if defined(OS_WIN) || defined(OS_MACOSX)
return base::WrapUnique(new gfx::ICCProfile(
GetTestingICCProfile("sRGB")));
-#elif defined(OS_MACOSX)
- return base::WrapUnique(new gfx::ICCProfile(
- GetTestingICCProfile("genericRGB")));
#else
return base::WrapUnique(new gfx::ICCProfile());
#endif
« no previous file with comments | « no previous file | content/test/layouttest_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698