OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/gpu/gpu_child_thread.h" | 5 #include "content/gpu/gpu_child_thread.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
9 #include "base/threading/worker_pool.h" | 11 #include "base/threading/worker_pool.h" |
10 #include "build/build_config.h" | 12 #include "build/build_config.h" |
11 #include "content/child/child_process.h" | 13 #include "content/child/child_process.h" |
12 #include "content/child/thread_safe_sender.h" | 14 #include "content/child/thread_safe_sender.h" |
13 #include "content/common/gpu/gpu_memory_buffer_factory.h" | 15 #include "content/common/gpu/gpu_memory_buffer_factory.h" |
14 #include "content/common/gpu/gpu_messages.h" | 16 #include "content/common/gpu/gpu_messages.h" |
15 #include "content/gpu/gpu_process_control_impl.h" | 17 #include "content/gpu/gpu_process_control_impl.h" |
16 #include "content/gpu/gpu_watchdog_thread.h" | 18 #include "content/gpu/gpu_watchdog_thread.h" |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 } | 391 } |
390 | 392 |
391 void GpuChildThread::BindProcessControlRequest( | 393 void GpuChildThread::BindProcessControlRequest( |
392 mojo::InterfaceRequest<ProcessControl> request) { | 394 mojo::InterfaceRequest<ProcessControl> request) { |
393 DVLOG(1) << "GPU: Binding ProcessControl request"; | 395 DVLOG(1) << "GPU: Binding ProcessControl request"; |
394 DCHECK(process_control_); | 396 DCHECK(process_control_); |
395 process_control_bindings_.AddBinding(process_control_.get(), request.Pass()); | 397 process_control_bindings_.AddBinding(process_control_.get(), request.Pass()); |
396 } | 398 } |
397 | 399 |
398 } // namespace content | 400 } // namespace content |
OLD | NEW |