| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 168 |
| 164 // The gpu::GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers. | 169 // The gpu::GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers. |
| 165 gpu::GpuMemoryBufferFactory* const gpu_memory_buffer_factory_; | 170 gpu::GpuMemoryBufferFactory* const gpu_memory_buffer_factory_; |
| 166 | 171 |
| 167 // Process control for Mojo application hosting. | 172 // Process control for Mojo application hosting. |
| 168 std::unique_ptr<GpuProcessControlImpl> process_control_; | 173 std::unique_ptr<GpuProcessControlImpl> process_control_; |
| 169 | 174 |
| 170 // Bindings to the mojom::ProcessControl impl. | 175 // Bindings to the mojom::ProcessControl impl. |
| 171 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_; | 176 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_; |
| 172 | 177 |
| 178 std::unique_ptr<GpuProcessLogMessageListener> log_listener_; |
| 179 |
| 173 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 180 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
| 174 }; | 181 }; |
| 175 | 182 |
| 176 } // namespace content | 183 } // namespace content |
| 177 | 184 |
| 178 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 185 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
| OLD | NEW |