| 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 "content/child/child_thread.h" | |
| 8 #include "content/common/child_process_messages.h" | 7 #include "content/common/child_process_messages.h" |
| 9 #include "content/common/gpu/client/gpu_memory_buffer_impl.h" | 8 #include "content/common/gpu/client/gpu_memory_buffer_impl.h" |
| 10 | 9 |
| 11 namespace content { | 10 namespace content { |
| 12 namespace { | 11 namespace { |
| 13 | 12 |
| 14 void DeletedGpuMemoryBuffer(ThreadSafeSender* sender, | 13 void DeletedGpuMemoryBuffer(ThreadSafeSender* sender, |
| 15 gfx::GpuMemoryBufferId id, | 14 gfx::GpuMemoryBufferId id, |
| 16 uint32 sync_point) { | 15 uint32 sync_point) { |
| 17 TRACE_EVENT0("renderer", | 16 TRACE_EVENT0("renderer", |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 67 } |
| 69 | 68 |
| 70 void ChildGpuMemoryBufferManager::SetDestructionSyncPoint( | 69 void ChildGpuMemoryBufferManager::SetDestructionSyncPoint( |
| 71 gfx::GpuMemoryBuffer* buffer, | 70 gfx::GpuMemoryBuffer* buffer, |
| 72 uint32 sync_point) { | 71 uint32 sync_point) { |
| 73 static_cast<GpuMemoryBufferImpl*>(buffer) | 72 static_cast<GpuMemoryBufferImpl*>(buffer) |
| 74 ->set_destruction_sync_point(sync_point); | 73 ->set_destruction_sync_point(sync_point); |
| 75 } | 74 } |
| 76 | 75 |
| 77 } // namespace content | 76 } // namespace content |
| OLD | NEW |