| 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 27 matching lines...) Expand all Loading... |
| 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; | 47 class GpuProcessControlImpl; |
| 48 class GpuProcessLogMessageListener : logging::LogMessageListener { |
| 49 public: |
| 50 void OnMessage(int severity, const char* file, int line, |
| 51 size_t message_start, const std::string& str) override; |
| 52 }; |
| 48 class GpuWatchdogThread; | 53 class GpuWatchdogThread; |
| 49 struct EstablishChannelParams; | 54 struct EstablishChannelParams; |
| 50 | 55 |
| 51 // The main thread of the GPU child process. There will only ever be one of | 56 // 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 | 57 // these per process. It does process initialization and shutdown. It forwards |
| 53 // IPC messages to gpu::GpuChannelManager, which is responsible for issuing | 58 // IPC messages to gpu::GpuChannelManager, which is responsible for issuing |
| 54 // rendering commands to the GPU. | 59 // rendering commands to the GPU. |
| 55 class GpuChildThread : public ChildThreadImpl, | 60 class GpuChildThread : public ChildThreadImpl, |
| 56 public gpu::GpuChannelManagerDelegate, | 61 public gpu::GpuChannelManagerDelegate, |
| 57 public base::FieldTrialList::Observer { | 62 public base::FieldTrialList::Observer { |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 | 172 |
| 168 // The gpu::GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers. | 173 // The gpu::GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers. |
| 169 gpu::GpuMemoryBufferFactory* const gpu_memory_buffer_factory_; | 174 gpu::GpuMemoryBufferFactory* const gpu_memory_buffer_factory_; |
| 170 | 175 |
| 171 // Process control for Mojo application hosting. | 176 // Process control for Mojo application hosting. |
| 172 std::unique_ptr<GpuProcessControlImpl> process_control_; | 177 std::unique_ptr<GpuProcessControlImpl> process_control_; |
| 173 | 178 |
| 174 // Bindings to the mojom::ProcessControl impl. | 179 // Bindings to the mojom::ProcessControl impl. |
| 175 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_; | 180 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_; |
| 176 | 181 |
| 182 std::unique_ptr<GpuProcessLogMessageListener> log_listener_; |
| 183 |
| 177 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 184 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
| 178 }; | 185 }; |
| 179 | 186 |
| 180 } // namespace content | 187 } // namespace content |
| 181 | 188 |
| 182 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 189 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
| OLD | NEW |