| 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 gfx::Size(width, height), | 337 gfx::Size(width, height), |
| 338 format, | 338 format, |
| 339 peer_handle_, | 339 peer_handle_, |
| 340 base::Bind(&ChildProcessHostImpl::GpuMemoryBufferAllocated, | 340 base::Bind(&ChildProcessHostImpl::GpuMemoryBufferAllocated, |
| 341 base::Unretained(this), | 341 base::Unretained(this), |
| 342 reply)); | 342 reply)); |
| 343 } | 343 } |
| 344 | 344 |
| 345 void ChildProcessHostImpl::OnDeletedGpuMemoryBuffer( | 345 void ChildProcessHostImpl::OnDeletedGpuMemoryBuffer( |
| 346 gfx::GpuMemoryBufferType type, | 346 gfx::GpuMemoryBufferType type, |
| 347 const gfx::GpuMemoryBufferId& id) { | 347 const gfx::GpuMemoryBufferId& id, |
| 348 uint32 sync_point) { |
| 348 // Note: Nothing to do here as ownership of shared memory backed | 349 // Note: Nothing to do here as ownership of shared memory backed |
| 349 // GpuMemoryBuffers is passed with IPC. | 350 // GpuMemoryBuffers is passed with IPC. |
| 350 } | 351 } |
| 351 | 352 |
| 352 void ChildProcessHostImpl::GpuMemoryBufferAllocated( | 353 void ChildProcessHostImpl::GpuMemoryBufferAllocated( |
| 353 IPC::Message* reply, | 354 IPC::Message* reply, |
| 354 const gfx::GpuMemoryBufferHandle& handle) { | 355 const gfx::GpuMemoryBufferHandle& handle) { |
| 355 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, | 356 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, |
| 356 handle); | 357 handle); |
| 357 Send(reply); | 358 Send(reply); |
| 358 } | 359 } |
| 359 | 360 |
| 360 } // namespace content | 361 } // namespace content |
| OLD | NEW |