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

Unified Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 1796293003: Image decode color: Push color profile from browser to renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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
Index: content/renderer/renderer_blink_platform_impl.cc
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
index e8c18cda5769d331526ce47f26055905897d779c..f980e6fbb78a338637f5ed5dfcf26c66d777abda 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -819,27 +819,6 @@ blink::WebString RendererBlinkPlatformImpl::signedPublicKeyAndChallengeString(
//------------------------------------------------------------------------------
-void RendererBlinkPlatformImpl::screenColorProfile(
- WebVector<char>* to_profile) {
-#if defined(OS_WIN)
- // On Windows screen color profile is only available in the browser.
- std::vector<char> profile;
- // This Send() can be called from any impl-side thread. Use a thread
- // safe send to avoid crashing trying to access RenderThread::Get(),
- // which is not accessible from arbitrary threads.
- thread_safe_sender_->Send(
- new RenderProcessHostMsg_GetMonitorColorProfile(&profile));
- *to_profile = profile;
-#else
- // On other platforms, the primary monitor color profile can be read
- // directly.
- gfx::ColorProfile profile;
- *to_profile = profile.profile();
-#endif
-}
-
-//------------------------------------------------------------------------------
-
blink::WebScrollbarBehavior* RendererBlinkPlatformImpl::scrollbarBehavior() {
return web_scrollbar_behavior_.get();
}

Powered by Google App Engine
This is Rietveld 408576698