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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2216073002: Color: Add ColorCorrectRendering flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@decoder_profile
Patch Set: Rebase Created 4 years, 4 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 | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index d462654cd638400414c9372a893c87fa63a5a80e..749ad090c0557be7eb81acdb340eea40f2a1334f 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -3326,22 +3326,9 @@ void WebViewImpl::setZoomFactorForDeviceScaleFactor(float zoomFactorForDeviceSca
void WebViewImpl::setDeviceColorProfile(const WebVector<char>& colorProfile)
{
- if (!page())
- return;
-
Vector<char> deviceProfile;
deviceProfile.append(colorProfile.data(), colorProfile.size());
ImageDecoder::setTargetColorProfile(deviceProfile);
-
- page()->setDeviceColorProfile(deviceProfile);
-}
-
-void WebViewImpl::resetDeviceColorProfileForTesting()
-{
- if (!page())
- return;
-
- page()->resetDeviceColorProfileForTesting();
}
void WebViewImpl::enableAutoResizeMode(const WebSize& minSize, const WebSize& maxSize)
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698