OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/common/child_process_host_impl.h" | 5 #include "content/common/child_process_host_impl.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/atomic_sequence_num.h" | 9 #include "base/atomic_sequence_num.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 // and handle failure in a controlled way when not. We just need to make | 310 // and handle failure in a controlled way when not. We just need to make |
311 // sure |usage| is supported here. | 311 // sure |usage| is supported here. |
312 if (GpuMemoryBufferImplSharedMemory::IsUsageSupported(usage)) { | 312 if (GpuMemoryBufferImplSharedMemory::IsUsageSupported(usage)) { |
313 *handle = GpuMemoryBufferImplSharedMemory::AllocateForChildProcess( | 313 *handle = GpuMemoryBufferImplSharedMemory::AllocateForChildProcess( |
314 id, gfx::Size(width, height), format, peer_process_.Handle()); | 314 id, gfx::Size(width, height), format, peer_process_.Handle()); |
315 } | 315 } |
316 } | 316 } |
317 | 317 |
318 void ChildProcessHostImpl::OnDeletedGpuMemoryBuffer( | 318 void ChildProcessHostImpl::OnDeletedGpuMemoryBuffer( |
319 gfx::GpuMemoryBufferId id, | 319 gfx::GpuMemoryBufferId id, |
320 uint32 sync_point) { | 320 const gpu::SyncToken& sync_token) { |
321 // Note: Nothing to do here as ownership of shared memory backed | 321 // Note: Nothing to do here as ownership of shared memory backed |
322 // GpuMemoryBuffers is passed with IPC. | 322 // GpuMemoryBuffers is passed with IPC. |
323 } | 323 } |
324 | 324 |
325 } // namespace content | 325 } // namespace content |
OLD | NEW |