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

Side by Side Diff: components/viz/host/server_gpu_memory_buffer_manager.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
OLDNEW
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 #include "components/viz/common/server_gpu_memory_buffer_manager.h" 5 #include "components/viz/host/server_gpu_memory_buffer_manager.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/threading/sequenced_task_runner_handle.h" 8 #include "base/threading/sequenced_task_runner_handle.h"
9 #include "gpu/ipc/client/gpu_memory_buffer_impl.h" 9 #include "gpu/ipc/client/gpu_memory_buffer_impl.h"
10 #include "gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.h" 10 #include "gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.h"
11 #include "gpu/ipc/common/gpu_memory_buffer_support.h" 11 #include "gpu/ipc/common/gpu_memory_buffer_support.h"
12 #include "services/ui/gpu/interfaces/gpu_service.mojom.h" 12 #include "services/ui/gpu/interfaces/gpu_service.mojom.h"
13 13
14 namespace viz { 14 namespace viz {
15 15
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 } 135 }
136 std::move(callback).Run(gfx::GpuMemoryBufferHandle()); 136 std::move(callback).Run(gfx::GpuMemoryBufferHandle());
137 return; 137 return;
138 } 138 }
139 if (!handle.is_null()) 139 if (!handle.is_null())
140 native_buffers_[client_id].insert(handle.id); 140 native_buffers_[client_id].insert(handle.id);
141 std::move(callback).Run(handle); 141 std::move(callback).Run(handle);
142 } 142 }
143 143
144 } // namespace viz 144 } // namespace viz
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698