| Index: content/gpu/gpu_child_thread.cc
|
| diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
|
| index e40928cd82a696d4dc88f320beac678296625d1a..5e29ad9bf52ad2a6dd018f099c5f2274932b318b 100644
|
| --- a/content/gpu/gpu_child_thread.cc
|
| +++ b/content/gpu/gpu_child_thread.cc
|
| @@ -182,6 +182,10 @@ void GpuChildThread::Shutdown() {
|
|
|
| void GpuChildThread::Init(const base::Time& process_start_time) {
|
| process_start_time_ = process_start_time;
|
| +
|
| + process_control_.reset(new GpuProcessControlImpl());
|
| + service_registry()->AddService(base::Bind(
|
| + &GpuChildThread::BindProcessControlRequest, base::Unretained(this)));
|
| }
|
|
|
| bool GpuChildThread::Send(IPC::Message* msg) {
|
| @@ -374,4 +378,10 @@ void GpuChildThread::OnGpuSwitched() {
|
| ui::GpuSwitchingManager::GetInstance()->NotifyGpuSwitched();
|
| }
|
|
|
| +void GpuChildThread::BindProcessControlRequest(
|
| + mojo::InterfaceRequest<ProcessControl> request) {
|
| + DCHECK(process_control_);
|
| + process_control_bindings_.AddBinding(process_control_.get(), request.Pass());
|
| +}
|
| +
|
| } // namespace content
|
|
|