| 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, | |
| 351 gfx::GpuMemoryBufferId id, | 350 gfx::GpuMemoryBufferId id, |
| 352 uint32 sync_point) { | 351 uint32 sync_point) { |
| 353 // Note: Nothing to do here as ownership of shared memory backed | 352 // Note: Nothing to do here as ownership of shared memory backed |
| 354 // GpuMemoryBuffers is passed with IPC. | 353 // GpuMemoryBuffers is passed with IPC. |
| 355 } | 354 } |
| 356 | 355 |
| 357 void ChildProcessHostImpl::GpuMemoryBufferAllocated( | 356 void ChildProcessHostImpl::GpuMemoryBufferAllocated( |
| 358 IPC::Message* reply, | 357 IPC::Message* reply, |
| 359 const gfx::GpuMemoryBufferHandle& handle) { | 358 const gfx::GpuMemoryBufferHandle& handle) { |
| 360 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, | 359 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, |
| 361 handle); | 360 handle); |
| 362 Send(reply); | 361 Send(reply); |
| 363 } | 362 } |
| 364 | 363 |
| 365 } // namespace content | 364 } // namespace content |
| OLD | NEW |