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

Unified Diff: content/gpu/gpu_child_thread.cc

Issue 2625933002: content/gpu: Set up a mojom connection between browser and gpu. (Closed)
Patch Set: tot merge Created 3 years, 11 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/gpu/gpu_child_thread.h ('k') | content/public/app/mojo/content_gpu_manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index 637b4802f198153f6e398699538b81439ebdf867..0da00b1f53c252b6faea95403f81ef88539e42bf 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -209,6 +209,8 @@ void GpuChildThread::Init(const base::Time& process_start_time) {
if (GetContentClient()->gpu()) // NULL in tests.
GetContentClient()->gpu()->Initialize(this);
+ channel()->AddAssociatedInterface(base::Bind(
+ &GpuChildThread::CreateGpuMainService, base::Unretained(this)));
}
void GpuChildThread::OnFieldTrialGroupFinalized(const std::string& trial_name,
@@ -216,6 +218,11 @@ void GpuChildThread::OnFieldTrialGroupFinalized(const std::string& trial_name,
Send(new GpuHostMsg_FieldTrialActivated(trial_name));
}
+void GpuChildThread::CreateGpuMainService(
+ ui::mojom::GpuMainAssociatedRequest request) {
+ // TODO(sad): Implement.
+}
+
bool GpuChildThread::Send(IPC::Message* msg) {
// The GPU process must never send a synchronous IPC message to the browser
// process. This could result in deadlock.
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | content/public/app/mojo/content_gpu_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698