| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, | 123 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, |
| 124 int client_id, | 124 int client_id, |
| 125 const gpu::SyncToken& sync_token) override; | 125 const gpu::SyncToken& sync_token) override; |
| 126 void GetVideoMemoryUsageStats( | 126 void GetVideoMemoryUsageStats( |
| 127 const GetVideoMemoryUsageStatsCallback& callback) override; | 127 const GetVideoMemoryUsageStatsCallback& callback) override; |
| 128 void LoadedShader(const std::string& data) override; | 128 void LoadedShader(const std::string& data) override; |
| 129 void DestroyingVideoSurface( | 129 void DestroyingVideoSurface( |
| 130 int32_t surface_id, | 130 int32_t surface_id, |
| 131 const DestroyingVideoSurfaceCallback& callback) override; | 131 const DestroyingVideoSurfaceCallback& callback) override; |
| 132 void WakeUpGpu() override; | 132 void WakeUpGpu() override; |
| 133 void DestroyAllChannels() override; |
| 134 void Crash() override; |
| 135 void Hang() override; |
| 136 void ThrowJavaException() override; |
| 133 | 137 |
| 134 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; | 138 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; |
| 135 | 139 |
| 136 // An event that will be signalled when we shutdown. | 140 // An event that will be signalled when we shutdown. |
| 137 base::WaitableEvent shutdown_event_; | 141 base::WaitableEvent shutdown_event_; |
| 138 | 142 |
| 139 std::unique_ptr<gpu::GpuWatchdogThread> watchdog_thread_; | 143 std::unique_ptr<gpu::GpuWatchdogThread> watchdog_thread_; |
| 140 | 144 |
| 141 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory_; | 145 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory_; |
| 142 | 146 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 158 gpu::SyncPointManager* sync_point_manager_ = nullptr; | 162 gpu::SyncPointManager* sync_point_manager_ = nullptr; |
| 159 | 163 |
| 160 mojo::BindingSet<mojom::GpuService> bindings_; | 164 mojo::BindingSet<mojom::GpuService> bindings_; |
| 161 | 165 |
| 162 DISALLOW_COPY_AND_ASSIGN(GpuService); | 166 DISALLOW_COPY_AND_ASSIGN(GpuService); |
| 163 }; | 167 }; |
| 164 | 168 |
| 165 } // namespace ui | 169 } // namespace ui |
| 166 | 170 |
| 167 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_ | 171 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_ |
| OLD | NEW |