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 #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 Loading... |
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 |
OLD | NEW |