| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 DeferredMessages deferred_messages, | 65 DeferredMessages deferred_messages, |
| 66 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory); | 66 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory); |
| 67 | 67 |
| 68 GpuChildThread(const InProcessChildThreadParams& params, | 68 GpuChildThread(const InProcessChildThreadParams& params, |
| 69 const gpu::GPUInfo& gpu_info, | 69 const gpu::GPUInfo& gpu_info, |
| 70 const gpu::GpuFeatureInfo& gpu_feature_info, | 70 const gpu::GpuFeatureInfo& gpu_feature_info, |
| 71 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory); | 71 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory); |
| 72 | 72 |
| 73 ~GpuChildThread() override; | 73 ~GpuChildThread() override; |
| 74 | 74 |
| 75 void Shutdown() override; | |
| 76 | |
| 77 void Init(const base::Time& process_start_time); | 75 void Init(const base::Time& process_start_time); |
| 78 | 76 |
| 79 private: | 77 private: |
| 80 GpuChildThread(const ChildThreadImpl::Options& options, | 78 GpuChildThread(const ChildThreadImpl::Options& options, |
| 81 std::unique_ptr<gpu::GpuWatchdogThread> gpu_watchdog_thread, | 79 std::unique_ptr<gpu::GpuWatchdogThread> gpu_watchdog_thread, |
| 82 bool dead_on_arrival, | 80 bool dead_on_arrival, |
| 83 bool in_browser_process, | 81 bool in_browser_process, |
| 84 const gpu::GPUInfo& gpu_info, | 82 const gpu::GPUInfo& gpu_info, |
| 85 const gpu::GpuFeatureInfo& gpu_feature_info, | 83 const gpu::GpuFeatureInfo& gpu_feature_info, |
| 86 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory); | 84 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 AssociatedInterfaceRegistryImpl associated_interfaces_; | 141 AssociatedInterfaceRegistryImpl associated_interfaces_; |
| 144 std::unique_ptr<ui::GpuService> gpu_service_; | 142 std::unique_ptr<ui::GpuService> gpu_service_; |
| 145 mojo::AssociatedBinding<ui::mojom::GpuMain> gpu_main_binding_; | 143 mojo::AssociatedBinding<ui::mojom::GpuMain> gpu_main_binding_; |
| 146 | 144 |
| 147 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 145 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
| 148 }; | 146 }; |
| 149 | 147 |
| 150 } // namespace content | 148 } // namespace content |
| 151 | 149 |
| 152 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 150 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
| OLD | NEW |