| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 const gpu::SyncToken& sync_token) override; | 139 const gpu::SyncToken& sync_token) override; |
| 140 void GetVideoMemoryUsageStats( | 140 void GetVideoMemoryUsageStats( |
| 141 const GetVideoMemoryUsageStatsCallback& callback) override; | 141 const GetVideoMemoryUsageStatsCallback& callback) override; |
| 142 void RequestCompleteGpuInfo( | 142 void RequestCompleteGpuInfo( |
| 143 const RequestCompleteGpuInfoCallback& callback) override; | 143 const RequestCompleteGpuInfoCallback& callback) override; |
| 144 void LoadedShader(const std::string& data) override; | 144 void LoadedShader(const std::string& data) override; |
| 145 void DestroyingVideoSurface( | 145 void DestroyingVideoSurface( |
| 146 int32_t surface_id, | 146 int32_t surface_id, |
| 147 const DestroyingVideoSurfaceCallback& callback) override; | 147 const DestroyingVideoSurfaceCallback& callback) override; |
| 148 void WakeUpGpu() override; | 148 void WakeUpGpu() override; |
| 149 void GpuSwitched() override; |
| 149 void DestroyAllChannels() override; | 150 void DestroyAllChannels() override; |
| 150 void Crash() override; | 151 void Crash() override; |
| 151 void Hang() override; | 152 void Hang() override; |
| 152 void ThrowJavaException() override; | 153 void ThrowJavaException() override; |
| 153 void Stop(const StopCallback& callback) override; | 154 void Stop(const StopCallback& callback) override; |
| 154 | 155 |
| 155 scoped_refptr<base::SingleThreadTaskRunner> main_runner_; | 156 scoped_refptr<base::SingleThreadTaskRunner> main_runner_; |
| 156 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; | 157 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; |
| 157 | 158 |
| 158 // An event that will be signalled when we shutdown. | 159 // An event that will be signalled when we shutdown. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 187 | 188 |
| 188 base::WeakPtr<GpuService> weak_ptr_; | 189 base::WeakPtr<GpuService> weak_ptr_; |
| 189 base::WeakPtrFactory<GpuService> weak_ptr_factory_; | 190 base::WeakPtrFactory<GpuService> weak_ptr_factory_; |
| 190 | 191 |
| 191 DISALLOW_COPY_AND_ASSIGN(GpuService); | 192 DISALLOW_COPY_AND_ASSIGN(GpuService); |
| 192 }; | 193 }; |
| 193 | 194 |
| 194 } // namespace ui | 195 } // namespace ui |
| 195 | 196 |
| 196 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_ | 197 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_ |
| OLD | NEW |