| 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/threading/non_thread_safe.h" | 10 #include "base/threading/non_thread_safe.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory_; | 148 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory_; |
| 149 | 149 |
| 150 gpu::GpuPreferences gpu_preferences_; | 150 gpu::GpuPreferences gpu_preferences_; |
| 151 | 151 |
| 152 // Information about the GPU, such as device and vendor ID. | 152 // Information about the GPU, such as device and vendor ID. |
| 153 gpu::GPUInfo gpu_info_; | 153 gpu::GPUInfo gpu_info_; |
| 154 | 154 |
| 155 // Information about general chrome feature support for the GPU. | 155 // Information about general chrome feature support for the GPU. |
| 156 gpu::GpuFeatureInfo gpu_feature_info_; | 156 gpu::GpuFeatureInfo gpu_feature_info_; |
| 157 | 157 |
| 158 mojom::GpuHostPtr gpu_host_; | 158 scoped_refptr<mojom::ThreadSafeGpuHostPtr> gpu_host_; |
| 159 std::unique_ptr<gpu::GpuChannelManager> gpu_channel_manager_; | 159 std::unique_ptr<gpu::GpuChannelManager> gpu_channel_manager_; |
| 160 std::unique_ptr<media::MediaGpuChannelManager> media_gpu_channel_manager_; | 160 std::unique_ptr<media::MediaGpuChannelManager> media_gpu_channel_manager_; |
| 161 | 161 |
| 162 // On some platforms (e.g. android webview), the SyncPointManager comes from | 162 // On some platforms (e.g. android webview), the SyncPointManager comes from |
| 163 // external sources. | 163 // external sources. |
| 164 std::unique_ptr<gpu::SyncPointManager> owned_sync_point_manager_; | 164 std::unique_ptr<gpu::SyncPointManager> owned_sync_point_manager_; |
| 165 gpu::SyncPointManager* sync_point_manager_ = nullptr; | 165 gpu::SyncPointManager* sync_point_manager_ = nullptr; |
| 166 | 166 |
| 167 mojo::BindingSet<mojom::GpuService> bindings_; | 167 mojo::BindingSet<mojom::GpuService> bindings_; |
| 168 | 168 |
| 169 DISALLOW_COPY_AND_ASSIGN(GpuService); | 169 DISALLOW_COPY_AND_ASSIGN(GpuService); |
| 170 }; | 170 }; |
| 171 | 171 |
| 172 } // namespace ui | 172 } // namespace ui |
| 173 | 173 |
| 174 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_ | 174 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_ |
| OLD | NEW |