| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 gfx::GpuMemoryBufferId id, | 132 gfx::GpuMemoryBufferId id, |
| 133 const gfx::Size& size, | 133 const gfx::Size& size, |
| 134 gfx::BufferFormat format, | 134 gfx::BufferFormat format, |
| 135 gfx::BufferUsage usage, | 135 gfx::BufferUsage usage, |
| 136 int client_id, | 136 int client_id, |
| 137 gpu::SurfaceHandle surface_handle, | 137 gpu::SurfaceHandle surface_handle, |
| 138 const CreateGpuMemoryBufferCallback& callback) override; | 138 const CreateGpuMemoryBufferCallback& callback) override; |
| 139 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, | 139 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, |
| 140 int client_id, | 140 int client_id, |
| 141 const gpu::SyncToken& sync_token) override; | 141 const gpu::SyncToken& sync_token) override; |
| 142 void GetGpuMemoryBufferAttribs( |
| 143 const GetGpuMemoryBufferAttribsCallback& callback) override; |
| 142 void GetVideoMemoryUsageStats( | 144 void GetVideoMemoryUsageStats( |
| 143 const GetVideoMemoryUsageStatsCallback& callback) override; | 145 const GetVideoMemoryUsageStatsCallback& callback) override; |
| 144 void RequestCompleteGpuInfo( | 146 void RequestCompleteGpuInfo( |
| 145 const RequestCompleteGpuInfoCallback& callback) override; | 147 const RequestCompleteGpuInfoCallback& callback) override; |
| 146 void LoadedShader(const std::string& data) override; | 148 void LoadedShader(const std::string& data) override; |
| 147 void DestroyingVideoSurface( | 149 void DestroyingVideoSurface( |
| 148 int32_t surface_id, | 150 int32_t surface_id, |
| 149 const DestroyingVideoSurfaceCallback& callback) override; | 151 const DestroyingVideoSurfaceCallback& callback) override; |
| 150 void WakeUpGpu() override; | 152 void WakeUpGpu() override; |
| 151 void GpuSwitched() override; | 153 void GpuSwitched() override; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |