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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1838853005: android: Remove in-process sync compositor code path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_in_proc_video
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 unified diff | Download patch
« no previous file with comments | « content/browser/android/synchronous_compositor_base.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 VLOG(1) << "Mojo Channel is enabled on host"; 814 VLOG(1) << "Mojo Channel is enabled on host";
815 mojo_channel_token_ = mojo::edk::GenerateRandomToken(); 815 mojo_channel_token_ = mojo::edk::GenerateRandomToken();
816 mojo::ScopedMessagePipeHandle handle = 816 mojo::ScopedMessagePipeHandle handle =
817 mojo::edk::CreateParentMessagePipe(mojo_channel_token_); 817 mojo::edk::CreateParentMessagePipe(mojo_channel_token_);
818 818
819 // Do NOT expand ifdef or run time condition checks here! Synchronous 819 // Do NOT expand ifdef or run time condition checks here! Synchronous
820 // IPCs from browser process are banned. It is only narrowly allowed 820 // IPCs from browser process are banned. It is only narrowly allowed
821 // for Android WebView to maintain backward compatibility. 821 // for Android WebView to maintain backward compatibility.
822 // See crbug.com/526842 for details. 822 // See crbug.com/526842 for details.
823 #if defined(OS_ANDROID) 823 #if defined(OS_ANDROID)
824 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 824 if (GetContentClient()->UsingSynchronousCompositing()) {
825 switches::kIPCSyncCompositing)) {
826 return IPC::SyncChannel::Create( 825 return IPC::SyncChannel::Create(
827 IPC::ChannelMojo::CreateServerFactory(std::move(handle)), this, 826 IPC::ChannelMojo::CreateServerFactory(std::move(handle)), this,
828 runner.get(), true, &never_signaled_); 827 runner.get(), true, &never_signaled_);
829 } 828 }
830 #endif // OS_ANDROID 829 #endif // OS_ANDROID
831 830
832 return IPC::ChannelProxy::Create( 831 return IPC::ChannelProxy::Create(
833 IPC::ChannelMojo::CreateServerFactory(std::move(handle)), this, 832 IPC::ChannelMojo::CreateServerFactory(std::move(handle)), this,
834 runner.get()); 833 runner.get());
835 } 834 }
836 835
837 // Do NOT expand ifdef or run time condition checks here! See comment above. 836 // Do NOT expand ifdef or run time condition checks here! See comment above.
838 #if defined(OS_ANDROID) 837 #if defined(OS_ANDROID)
839 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 838 if (GetContentClient()->UsingSynchronousCompositing()) {
840 switches::kIPCSyncCompositing)) {
841 return IPC::SyncChannel::Create(channel_id, IPC::Channel::MODE_SERVER, this, 839 return IPC::SyncChannel::Create(channel_id, IPC::Channel::MODE_SERVER, this,
842 runner.get(), true, &never_signaled_); 840 runner.get(), true, &never_signaled_);
843 } 841 }
844 #endif // OS_ANDROID 842 #endif // OS_ANDROID
845 843
846 return IPC::ChannelProxy::Create(channel_id, IPC::Channel::MODE_SERVER, this, 844 return IPC::ChannelProxy::Create(channel_id, IPC::Channel::MODE_SERVER, this,
847 runner.get()); 845 runner.get());
848 } 846 }
849 847
850 void RenderProcessHostImpl::CreateMessageFilters() { 848 void RenderProcessHostImpl::CreateMessageFilters() {
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
1560 switches::kEnableWebRtcHWH264Encoding, 1558 switches::kEnableWebRtcHWH264Encoding,
1561 switches::kEnableWebRtcStunOrigin, 1559 switches::kEnableWebRtcStunOrigin,
1562 switches::kEnforceWebRtcIPPermissionCheck, 1560 switches::kEnforceWebRtcIPPermissionCheck,
1563 switches::kForceWebRtcIPHandlingPolicy, 1561 switches::kForceWebRtcIPHandlingPolicy,
1564 switches::kWebRtcMaxCaptureFramerate, 1562 switches::kWebRtcMaxCaptureFramerate,
1565 #endif 1563 #endif
1566 switches::kEnableLowEndDeviceMode, 1564 switches::kEnableLowEndDeviceMode,
1567 switches::kDisableLowEndDeviceMode, 1565 switches::kDisableLowEndDeviceMode,
1568 #if defined(OS_ANDROID) 1566 #if defined(OS_ANDROID)
1569 switches::kDisableUnifiedMediaPipeline, 1567 switches::kDisableUnifiedMediaPipeline,
1570 switches::kIPCSyncCompositing,
1571 switches::kRendererWaitForJavaDebugger, 1568 switches::kRendererWaitForJavaDebugger,
1572 #endif 1569 #endif
1573 #if defined(OS_MACOSX) 1570 #if defined(OS_MACOSX)
1574 // Allow this to be set when invoking the browser and relayed along. 1571 // Allow this to be set when invoking the browser and relayed along.
1575 switches::kEnableSandboxLogging, 1572 switches::kEnableSandboxLogging,
1576 #endif 1573 #endif
1577 #if defined(OS_WIN) 1574 #if defined(OS_WIN)
1578 switches::kDisableDirectWrite, 1575 switches::kDisableDirectWrite,
1579 switches::kDisableWin32kRendererLockDown, 1576 switches::kDisableWin32kRendererLockDown,
1580 switches::kTrySupportedChannelLayouts, 1577 switches::kTrySupportedChannelLayouts,
(...skipping 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after
2828 2825
2829 // Skip widgets in other processes. 2826 // Skip widgets in other processes.
2830 if (rvh->GetProcess()->GetID() != GetID()) 2827 if (rvh->GetProcess()->GetID() != GetID())
2831 continue; 2828 continue;
2832 2829
2833 rvh->OnWebkitPreferencesChanged(); 2830 rvh->OnWebkitPreferencesChanged();
2834 } 2831 }
2835 } 2832 }
2836 2833
2837 } // namespace content 2834 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/synchronous_compositor_base.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698