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

Unified Diff: content/gpu/gpu_child_thread.cc

Issue 2625933002: content/gpu: Set up a mojom connection between browser and gpu. (Closed)
Patch Set: 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..726dffc1b8878c16e5f9e9be9eaa85eab8527ac0 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -203,12 +203,11 @@ void GpuChildThread::Init(const base::Time& process_start_time) {
if (!in_browser_process_)
media::SetMediaClientAndroid(GetContentClient()->GetMediaClientAndroid());
#endif
- // We don't want to process any incoming interface requests until
- // OnInitialize() is invoked.
jbauman 2017/01/11 01:49:22 Just checking, but is the reason we can remove thi
sadrul 2017/01/11 01:55:46 The Pause/Resume was added in https://crrev.com/40
Ken Rockot(use gerrit already) 2017/01/11 18:17:00 This rationale seems kind of circular to me. I don
- GetInterfaceRegistry()->PauseBinding();
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 +215,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.
@@ -369,8 +373,6 @@ void GpuChildThread::OnInitialize(const gpu::GpuPreferences& gpu_preferences) {
GetContentClient()->gpu()->ConsumeInterfacesFromBrowser(
GetRemoteInterfaces());
}
-
- GetInterfaceRegistry()->ResumeBinding();
}
void GpuChildThread::OnFinalize() {
« 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