| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 public: | 58 public: |
| 59 typedef std::queue<IPC::Message*> DeferredMessages; | 59 typedef std::queue<IPC::Message*> DeferredMessages; |
| 60 | 60 |
| 61 GpuChildThread(gpu::GpuWatchdogThread* gpu_watchdog_thread, | 61 GpuChildThread(gpu::GpuWatchdogThread* gpu_watchdog_thread, |
| 62 bool dead_on_arrival, | 62 bool dead_on_arrival, |
| 63 const gpu::GPUInfo& gpu_info, | 63 const gpu::GPUInfo& gpu_info, |
| 64 const DeferredMessages& deferred_messages, | 64 const DeferredMessages& deferred_messages, |
| 65 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory); | 65 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory); |
| 66 | 66 |
| 67 GpuChildThread(const InProcessChildThreadParams& params, | 67 GpuChildThread(const InProcessChildThreadParams& params, |
| 68 const gpu::GPUInfo& gpu_info, |
| 68 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory); | 69 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory); |
| 69 | 70 |
| 70 ~GpuChildThread() override; | 71 ~GpuChildThread() override; |
| 71 | 72 |
| 72 void Shutdown() override; | 73 void Shutdown() override; |
| 73 | 74 |
| 74 void Init(const base::Time& process_start_time); | 75 void Init(const base::Time& process_start_time); |
| 75 void StopWatchdog(); | 76 void StopWatchdog(); |
| 76 | 77 |
| 77 private: | 78 private: |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 164 |
| 164 // Bindings to the shell::mojom::ServiceFactory impl. | 165 // Bindings to the shell::mojom::ServiceFactory impl. |
| 165 mojo::BindingSet<shell::mojom::ServiceFactory> service_factory_bindings_; | 166 mojo::BindingSet<shell::mojom::ServiceFactory> service_factory_bindings_; |
| 166 | 167 |
| 167 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 168 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
| 168 }; | 169 }; |
| 169 | 170 |
| 170 } // namespace content | 171 } // namespace content |
| 171 | 172 |
| 172 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 173 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
| OLD | NEW |