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