| 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 <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "content/common/child_process_messages.h" | 10 #include "content/common/child_process_messages.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 handle.id))); | 57 handle.id))); |
| 58 if (!buffer) { | 58 if (!buffer) { |
| 59 sender_->Send(new ChildProcessHostMsg_DeletedGpuMemoryBuffer( | 59 sender_->Send(new ChildProcessHostMsg_DeletedGpuMemoryBuffer( |
| 60 handle.id, gpu::SyncToken())); | 60 handle.id, gpu::SyncToken())); |
| 61 return nullptr; | 61 return nullptr; |
| 62 } | 62 } |
| 63 | 63 |
| 64 return std::move(buffer); | 64 return std::move(buffer); |
| 65 } | 65 } |
| 66 | 66 |
| 67 std::unique_ptr<gfx::GpuMemoryBuffer> | |
| 68 ChildGpuMemoryBufferManager::CreateGpuMemoryBufferFromHandle( | |
| 69 const gfx::GpuMemoryBufferHandle& handle, | |
| 70 const gfx::Size& size, | |
| 71 gfx::BufferFormat format) { | |
| 72 NOTIMPLEMENTED(); | |
| 73 return nullptr; | |
| 74 } | |
| 75 | |
| 76 void ChildGpuMemoryBufferManager::SetDestructionSyncToken( | 67 void ChildGpuMemoryBufferManager::SetDestructionSyncToken( |
| 77 gfx::GpuMemoryBuffer* buffer, | 68 gfx::GpuMemoryBuffer* buffer, |
| 78 const gpu::SyncToken& sync_token) { | 69 const gpu::SyncToken& sync_token) { |
| 79 static_cast<gpu::GpuMemoryBufferImpl*>(buffer)->set_destruction_sync_token( | 70 static_cast<gpu::GpuMemoryBufferImpl*>(buffer)->set_destruction_sync_token( |
| 80 sync_token); | 71 sync_token); |
| 81 } | 72 } |
| 82 | 73 |
| 83 } // namespace content | 74 } // namespace content |
| OLD | NEW |