| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 SERVICES_UI_GPU_GPU_SERVICE_H_ | 5 #ifndef SERVICES_UI_GPU_GPU_SERVICE_H_ |
| 6 #define SERVICES_UI_GPU_GPU_SERVICE_H_ | 6 #define SERVICES_UI_GPU_GPU_SERVICE_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/synchronization/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
| 10 #include "base/task/cancelable_task_tracker.h" | 10 #include "base/task/cancelable_task_tracker.h" |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 | 157 |
| 158 scoped_refptr<base::SingleThreadTaskRunner> main_runner_; | 158 scoped_refptr<base::SingleThreadTaskRunner> main_runner_; |
| 159 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; | 159 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; |
| 160 | 160 |
| 161 std::unique_ptr<gpu::GpuWatchdogThread> watchdog_thread_; | 161 std::unique_ptr<gpu::GpuWatchdogThread> watchdog_thread_; |
| 162 | 162 |
| 163 std::unique_ptr<gpu::GpuMemoryBufferFactory> gpu_memory_buffer_factory_; | 163 std::unique_ptr<gpu::GpuMemoryBufferFactory> gpu_memory_buffer_factory_; |
| 164 | 164 |
| 165 gpu::GpuPreferences gpu_preferences_; | 165 gpu::GpuPreferences gpu_preferences_; |
| 166 | 166 |
| 167 gpu::GpuDriverBugWorkarounds gpu_workarounds_; |
| 168 |
| 167 // Information about the GPU, such as device and vendor ID. | 169 // Information about the GPU, such as device and vendor ID. |
| 168 gpu::GPUInfo gpu_info_; | 170 gpu::GPUInfo gpu_info_; |
| 169 | 171 |
| 170 // Information about general chrome feature support for the GPU. | 172 // Information about general chrome feature support for the GPU. |
| 171 gpu::GpuFeatureInfo gpu_feature_info_; | 173 gpu::GpuFeatureInfo gpu_feature_info_; |
| 172 | 174 |
| 173 scoped_refptr<mojom::ThreadSafeGpuHostPtr> gpu_host_; | 175 scoped_refptr<mojom::ThreadSafeGpuHostPtr> gpu_host_; |
| 174 std::unique_ptr<gpu::GpuChannelManager> gpu_channel_manager_; | 176 std::unique_ptr<gpu::GpuChannelManager> gpu_channel_manager_; |
| 175 std::unique_ptr<media::MediaGpuChannelManager> media_gpu_channel_manager_; | 177 std::unique_ptr<media::MediaGpuChannelManager> media_gpu_channel_manager_; |
| 176 | 178 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 194 | 196 |
| 195 base::WeakPtr<GpuService> weak_ptr_; | 197 base::WeakPtr<GpuService> weak_ptr_; |
| 196 base::WeakPtrFactory<GpuService> weak_ptr_factory_; | 198 base::WeakPtrFactory<GpuService> weak_ptr_factory_; |
| 197 | 199 |
| 198 DISALLOW_COPY_AND_ASSIGN(GpuService); | 200 DISALLOW_COPY_AND_ASSIGN(GpuService); |
| 199 }; | 201 }; |
| 200 | 202 |
| 201 } // namespace ui | 203 } // namespace ui |
| 202 | 204 |
| 203 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_ | 205 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_ |
| OLD | NEW |