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

Unified Diff: content/browser/gpu/gpu_process_host.cc

Issue 960693003: Enable ChannelMojo for non-renderer child processes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Splitted out the ipc/ change Created 5 years, 9 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/browser/gpu/gpu_process_host.h ('k') | content/browser/plugin_process_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_process_host.cc
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index be1437451b93cfe3bf8cc80ddd54259721a1b88b..654f49cbc359cedb56b13942570546523610cf6d 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -34,6 +34,7 @@
#include "content/public/browser/render_widget_host_view_frame_subscriber.h"
#include "content/public/common/content_client.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/mojo_channel_switches.h"
#include "content/public/common/result_codes.h"
#include "content/public/common/sandboxed_process_launcher_delegate.h"
#include "gpu/command_buffer/service/gpu_switches.h"
@@ -516,7 +517,8 @@ bool GpuProcessHost::Init() {
#endif
in_process_gpu_thread_->StartWithOptions(options);
- OnProcessLaunched(); // Fake a callback that the process is ready.
+ process_->NotifyProcessLaunched(); // Fake a callback that the process is
+ // ready.
} else if (!LaunchGpuProcess(channel_id)) {
return false;
}
@@ -556,6 +558,10 @@ void GpuProcessHost::AddFilter(IPC::MessageFilter* filter) {
process_->GetHost()->AddFilter(filter);
}
+bool GpuProcessHost::ShouldUseMojoChannel() {
+ return content::ShouldUseMojoChannel();
+}
+
bool GpuProcessHost::OnMessageReceived(const IPC::Message& message) {
DCHECK(CalledOnValidThread());
IPC_BEGIN_MESSAGE_MAP(GpuProcessHost, message)
« no previous file with comments | « content/browser/gpu/gpu_process_host.h ('k') | content/browser/plugin_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698