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

Unified Diff: content/test/layouttest_support.cc

Issue 2970183002: color: Use ColorSpace for plumbing (Closed)
Patch Set: Add missed places Created 3 years, 5 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/test_runner/web_test_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/layouttest_support.cc
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
index 3d11b827bf04fa690dd5ee01c859cbca2b1e74b8..f85add06461e16f2c7de5fe260ca6a554f8dc32b 100644
--- a/content/test/layouttest_support.cc
+++ b/content/test/layouttest_support.cc
@@ -499,25 +499,25 @@ std::unique_ptr<blink::WebInputEvent> TransformScreenToWidgetCoordinates(
return ui::TranslateAndScaleWebInputEvent(event, delta, scale);
}
-gfx::ICCProfile GetTestingICCProfile(const std::string& name) {
+gfx::ColorSpace GetTestingColorSpace(const std::string& name) {
if (name == "genericRGB") {
- return gfx::ICCProfileForTestingGenericRGB();
+ return gfx::ICCProfileForTestingGenericRGB().GetColorSpace();
} else if (name == "sRGB") {
- return gfx::ICCProfileForTestingSRGB();
+ return gfx::ColorSpace::CreateSRGB();
} else if (name == "test" || name == "colorSpin") {
- return gfx::ICCProfileForTestingColorSpin();
+ return gfx::ICCProfileForTestingColorSpin().GetColorSpace();
} else if (name == "adobeRGB") {
- return gfx::ICCProfileForTestingAdobeRGB();
+ return gfx::ICCProfileForTestingAdobeRGB().GetColorSpace();
} else if (name == "reset") {
- return gfx::ICCProfileForLayoutTests();
+ return gfx::ICCProfileForLayoutTests().GetColorSpace();
}
- return gfx::ICCProfile();
+ return gfx::ColorSpace();
}
-void SetDeviceColorProfile(
- RenderView* render_view, const gfx::ICCProfile& icc_profile) {
- static_cast<RenderViewImpl*>(render_view)->
- SetDeviceColorProfileForTesting(icc_profile);
+void SetDeviceColorSpace(RenderView* render_view,
+ const gfx::ColorSpace& color_space) {
+ static_cast<RenderViewImpl*>(render_view)
+ ->SetDeviceColorSpaceForTesting(color_space);
}
void SetTestBluetoothScanDuration() {
« no previous file with comments | « content/shell/test_runner/web_test_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698