| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/child/child_gpu_memory_buffer_manager.h" | 5 #include "content/child/child_gpu_memory_buffer_manager.h" |
| 6 | 6 |
| 7 #include <memory> |
| 7 #include <utility> | 8 #include <utility> |
| 8 | 9 |
| 9 #include "content/common/child_process_messages.h" | 10 #include "content/common/child_process_messages.h" |
| 10 #include "content/common/generic_shared_memory_id_generator.h" | 11 #include "content/common/generic_shared_memory_id_generator.h" |
| 11 #include "gpu/ipc/client/gpu_memory_buffer_impl.h" | 12 #include "gpu/ipc/client/gpu_memory_buffer_impl.h" |
| 12 | 13 |
| 13 namespace content { | 14 namespace content { |
| 14 namespace { | 15 namespace { |
| 15 | 16 |
| 16 void DeletedGpuMemoryBuffer(ThreadSafeSender* sender, | 17 void DeletedGpuMemoryBuffer(ThreadSafeSender* sender, |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 } | 83 } |
| 83 | 84 |
| 84 void ChildGpuMemoryBufferManager::SetDestructionSyncToken( | 85 void ChildGpuMemoryBufferManager::SetDestructionSyncToken( |
| 85 gfx::GpuMemoryBuffer* buffer, | 86 gfx::GpuMemoryBuffer* buffer, |
| 86 const gpu::SyncToken& sync_token) { | 87 const gpu::SyncToken& sync_token) { |
| 87 static_cast<gpu::GpuMemoryBufferImpl*>(buffer)->set_destruction_sync_token( | 88 static_cast<gpu::GpuMemoryBufferImpl*>(buffer)->set_destruction_sync_token( |
| 88 sync_token); | 89 sync_token); |
| 89 } | 90 } |
| 90 | 91 |
| 91 } // namespace content | 92 } // namespace content |
| OLD | NEW |