| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 177 |
| 178 // On some platforms (e.g. android webview), the SyncPointManager comes from | 178 // On some platforms (e.g. android webview), the SyncPointManager comes from |
| 179 // external sources. | 179 // external sources. |
| 180 std::unique_ptr<gpu::SyncPointManager> owned_sync_point_manager_; | 180 std::unique_ptr<gpu::SyncPointManager> owned_sync_point_manager_; |
| 181 gpu::SyncPointManager* sync_point_manager_ = nullptr; | 181 gpu::SyncPointManager* sync_point_manager_ = nullptr; |
| 182 | 182 |
| 183 // Whether this is running in the same process as the gpu host. | 183 // Whether this is running in the same process as the gpu host. |
| 184 bool in_host_process_ = false; | 184 bool in_host_process_ = false; |
| 185 base::Time start_time_; | 185 base::Time start_time_; |
| 186 | 186 |
| 187 mojo::BindingSet<mojom::GpuService> bindings_; | 187 std::unique_ptr<mojo::BindingSet<mojom::GpuService>> bindings_; |
| 188 | 188 |
| 189 base::WeakPtr<GpuService> weak_ptr_; | 189 base::WeakPtr<GpuService> weak_ptr_; |
| 190 base::WeakPtrFactory<GpuService> weak_ptr_factory_; | 190 base::WeakPtrFactory<GpuService> weak_ptr_factory_; |
| 191 | 191 |
| 192 DISALLOW_COPY_AND_ASSIGN(GpuService); | 192 DISALLOW_COPY_AND_ASSIGN(GpuService); |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 } // namespace ui | 195 } // namespace ui |
| 196 | 196 |
| 197 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_ | 197 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_ |
| OLD | NEW |