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

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

Issue 2299193005: Layout tests: Parameterize color space to use by default (Closed)
Patch Set: Actually specify generic 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 | « content/shell/renderer/layout_test/blink_test_runner.cc ('k') | 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 de021a50026b45a10cde7fc8ef1452dfcc92c4e4..3e2cb1ad0bea753cbde6a57b6e5c090259fb9262 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
@@ -232,10 +232,11 @@ LayoutTestContentRendererClient::GetImageDecodeColorProfile() {
// TODO(ccameron): Make all platforms use the same color profile for layout
// tests.
#if defined(OS_WIN)
- return nullptr;
+ return base::WrapUnique(new gfx::ICCProfile(
+ GetTestingICCProfile("sRGB")));
#elif defined(OS_MACOSX)
- return base::WrapUnique(new gfx::ICCProfile(gfx::ICCProfile::FromCGColorSpace(
- CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB))));
+ return base::WrapUnique(new gfx::ICCProfile(
+ GetTestingICCProfile("genericRGB")));
#else
return base::WrapUnique(new gfx::ICCProfile());
#endif
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.cc ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698