Chromium Code Reviews| 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() { |