| 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 <queue> | 10 #include <queue> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 namespace sandbox { | 36 namespace sandbox { |
| 37 class TargetServices; | 37 class TargetServices; |
| 38 } | 38 } |
| 39 | 39 |
| 40 namespace content { | 40 namespace content { |
| 41 class GpuMemoryBufferFactory; | 41 class GpuMemoryBufferFactory; |
| 42 class GpuProcessControlImpl; | 42 class GpuProcessControlImpl; |
| 43 class GpuWatchdogThread; | 43 class GpuWatchdogThread; |
| 44 class MediaService; | 44 class MediaService; |
| 45 struct EstablishChannelParams; |
| 45 | 46 |
| 46 // The main thread of the GPU child process. There will only ever be one of | 47 // The main thread of the GPU child process. There will only ever be one of |
| 47 // these per process. It does process initialization and shutdown. It forwards | 48 // these per process. It does process initialization and shutdown. It forwards |
| 48 // IPC messages to GpuChannelManager, which is responsible for issuing rendering | 49 // IPC messages to GpuChannelManager, which is responsible for issuing rendering |
| 49 // commands to the GPU. | 50 // commands to the GPU. |
| 50 class GpuChildThread : public ChildThreadImpl, | 51 class GpuChildThread : public ChildThreadImpl, |
| 51 public GpuChannelManagerDelegate { | 52 public GpuChannelManagerDelegate { |
| 52 public: | 53 public: |
| 53 typedef std::queue<IPC::Message*> DeferredMessages; | 54 typedef std::queue<IPC::Message*> DeferredMessages; |
| 54 | 55 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 172 |
| 172 // Bindings to the ProcessControl impl. | 173 // Bindings to the ProcessControl impl. |
| 173 mojo::BindingSet<ProcessControl> process_control_bindings_; | 174 mojo::BindingSet<ProcessControl> process_control_bindings_; |
| 174 | 175 |
| 175 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 176 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
| 176 }; | 177 }; |
| 177 | 178 |
| 178 } // namespace content | 179 } // namespace content |
| 179 | 180 |
| 180 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 181 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
| OLD | NEW |