Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: services/ui/ws/gpu_client.cc

Issue 2941423002: viz: Move ServerGpuMemoryBufferManager into host/gpu. (Closed)
Patch Set: fix tot merge Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/ui/ws/DEPS ('k') | services/ui/ws/gpu_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « services/ui/ws/DEPS ('k') | services/ui/ws/gpu_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698