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> |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 namespace media { | 38 namespace media { |
39 class MediaService; | 39 class MediaService; |
40 } | 40 } |
41 | 41 |
42 namespace sandbox { | 42 namespace sandbox { |
43 class TargetServices; | 43 class TargetServices; |
44 } | 44 } |
45 | 45 |
46 namespace content { | 46 namespace content { |
| 47 class GpuProcessControlImpl; |
| 48 class GpuProcessLogMessageListener : logging::LogMessageListener { |
| 49 public: |
| 50 void OnMessage(int severity, |
| 51 const char* file, |
| 52 int line, |
| 53 size_t message_start, |
| 54 const std::string& str) override; |
| 55 }; |
| 56 |
47 class GpuServiceFactory; | 57 class GpuServiceFactory; |
48 class GpuWatchdogThread; | 58 class GpuWatchdogThread; |
49 struct EstablishChannelParams; | 59 struct EstablishChannelParams; |
50 | 60 |
51 // The main thread of the GPU child process. There will only ever be one of | 61 // The main thread of the GPU child process. There will only ever be one of |
52 // these per process. It does process initialization and shutdown. It forwards | 62 // these per process. It does process initialization and shutdown. It forwards |
53 // IPC messages to gpu::GpuChannelManager, which is responsible for issuing | 63 // IPC messages to gpu::GpuChannelManager, which is responsible for issuing |
54 // rendering commands to the GPU. | 64 // rendering commands to the GPU. |
55 class GpuChildThread : public ChildThreadImpl, | 65 class GpuChildThread : public ChildThreadImpl, |
56 public gpu::GpuChannelManagerDelegate, | 66 public gpu::GpuChannelManagerDelegate, |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 173 |
164 // The gpu::GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers. | 174 // The gpu::GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers. |
165 gpu::GpuMemoryBufferFactory* const gpu_memory_buffer_factory_; | 175 gpu::GpuMemoryBufferFactory* const gpu_memory_buffer_factory_; |
166 | 176 |
167 // ServiceFactory for shell::Service hosting. | 177 // ServiceFactory for shell::Service hosting. |
168 std::unique_ptr<GpuServiceFactory> service_factory_; | 178 std::unique_ptr<GpuServiceFactory> service_factory_; |
169 | 179 |
170 // Bindings to the shell::mojom::ServiceFactory impl. | 180 // Bindings to the shell::mojom::ServiceFactory impl. |
171 mojo::BindingSet<shell::mojom::ServiceFactory> service_factory_bindings_; | 181 mojo::BindingSet<shell::mojom::ServiceFactory> service_factory_bindings_; |
172 | 182 |
| 183 std::unique_ptr<GpuProcessLogMessageListener> log_listener_; |
| 184 |
173 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 185 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
174 }; | 186 }; |
175 | 187 |
176 } // namespace content | 188 } // namespace content |
177 | 189 |
178 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 190 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
OLD | NEW |