OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #include "services/ui/ws/gpu_client.h" | 5 #include "services/ui/ws/gpu_client.h" |
6 | 6 |
7 #include "components/viz/common/server_gpu_memory_buffer_manager.h" | 7 #include "components/viz/host/server_gpu_memory_buffer_manager.h" |
8 #include "services/ui/gpu/interfaces/gpu_service.mojom.h" | 8 #include "services/ui/gpu/interfaces/gpu_service.mojom.h" |
9 | 9 |
10 namespace { | 10 namespace { |
11 | 11 |
12 void RunCallback(const ui::mojom::Gpu::CreateGpuMemoryBufferCallback& callback, | 12 void RunCallback(const ui::mojom::Gpu::CreateGpuMemoryBufferCallback& callback, |
13 const gfx::GpuMemoryBufferHandle& handle) { | 13 const gfx::GpuMemoryBufferHandle& handle) { |
14 callback.Run(handle); | 14 callback.Run(handle); |
15 } | 15 } |
16 | 16 |
17 } // namespace | 17 } // namespace |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 } | 68 } |
69 | 69 |
70 void GpuClient::DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, | 70 void GpuClient::DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, |
71 const gpu::SyncToken& sync_token) { | 71 const gpu::SyncToken& sync_token) { |
72 gpu_memory_buffer_manager_->DestroyGpuMemoryBuffer(id, client_id_, | 72 gpu_memory_buffer_manager_->DestroyGpuMemoryBuffer(id, client_id_, |
73 sync_token); | 73 sync_token); |
74 } | 74 } |
75 | 75 |
76 } // namespace ws | 76 } // namespace ws |
77 } // namespace ui | 77 } // namespace ui |
OLD | NEW |