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 #ifndef CONTENT_GPU_GPU_CHILD_THREAD_H_ | 5 #ifndef CONTENT_GPU_GPU_CHILD_THREAD_H_ |
6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ | 6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <queue> | 11 #include <queue> |
12 #include <string> | 12 #include <string> |
13 | 13 |
| 14 #include "base/callback.h" |
14 #include "base/command_line.h" | 15 #include "base/command_line.h" |
15 #include "base/macros.h" | 16 #include "base/macros.h" |
16 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
17 #include "base/metrics/field_trial.h" | 18 #include "base/metrics/field_trial.h" |
18 #include "base/time/time.h" | 19 #include "base/time/time.h" |
19 #include "build/build_config.h" | 20 #include "build/build_config.h" |
20 #include "content/child/child_thread_impl.h" | 21 #include "content/child/child_thread_impl.h" |
21 #include "content/common/process_control.mojom.h" | 22 #include "content/common/process_control.mojom.h" |
22 #include "gpu/command_buffer/service/gpu_preferences.h" | 23 #include "gpu/command_buffer/service/gpu_preferences.h" |
23 #include "gpu/config/gpu_info.h" | 24 #include "gpu/config/gpu_info.h" |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 | 172 |
172 // The gpu::GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers. | 173 // The gpu::GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers. |
173 gpu::GpuMemoryBufferFactory* const gpu_memory_buffer_factory_; | 174 gpu::GpuMemoryBufferFactory* const gpu_memory_buffer_factory_; |
174 | 175 |
175 // Process control for Mojo application hosting. | 176 // Process control for Mojo application hosting. |
176 std::unique_ptr<GpuProcessControlImpl> process_control_; | 177 std::unique_ptr<GpuProcessControlImpl> process_control_; |
177 | 178 |
178 // Bindings to the mojom::ProcessControl impl. | 179 // Bindings to the mojom::ProcessControl impl. |
179 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_; | 180 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_; |
180 | 181 |
| 182 base::Closure resume_interface_bindings_callback_; |
| 183 |
181 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 184 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
182 }; | 185 }; |
183 | 186 |
184 } // namespace content | 187 } // namespace content |
185 | 188 |
186 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 189 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
OLD | NEW |