| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 std::unique_ptr<gfx::GpuMemoryBuffer> | 71 std::unique_ptr<gfx::GpuMemoryBuffer> |
| 72 ChildGpuMemoryBufferManager::CreateGpuMemoryBufferFromHandle( | 72 ChildGpuMemoryBufferManager::CreateGpuMemoryBufferFromHandle( |
| 73 const gfx::GpuMemoryBufferHandle& handle, | 73 const gfx::GpuMemoryBufferHandle& handle, |
| 74 const gfx::Size& size, | 74 const gfx::Size& size, |
| 75 gfx::BufferFormat format) { | 75 gfx::BufferFormat format) { |
| 76 NOTIMPLEMENTED(); | 76 NOTIMPLEMENTED(); |
| 77 return nullptr; | 77 return nullptr; |
| 78 } | 78 } |
| 79 | 79 |
| 80 std::unique_ptr<gfx::GpuMemoryBuffer> | |
| 81 ChildGpuMemoryBufferManager::CreateGpuMemoryBufferFromClientId( | |
| 82 int client_id, | |
| 83 const gfx::GpuMemoryBufferId& gpu_memory_buffer_id) { | |
| 84 NOTIMPLEMENTED(); | |
| 85 return nullptr; | |
| 86 } | |
| 87 | |
| 88 gfx::GpuMemoryBuffer* | 80 gfx::GpuMemoryBuffer* |
| 89 ChildGpuMemoryBufferManager::GpuMemoryBufferFromClientBuffer( | 81 ChildGpuMemoryBufferManager::GpuMemoryBufferFromClientBuffer( |
| 90 ClientBuffer buffer) { | 82 ClientBuffer buffer) { |
| 91 return gpu::GpuMemoryBufferImpl::FromClientBuffer(buffer); | 83 return gpu::GpuMemoryBufferImpl::FromClientBuffer(buffer); |
| 92 } | 84 } |
| 93 | 85 |
| 94 void ChildGpuMemoryBufferManager::SetDestructionSyncToken( | 86 void ChildGpuMemoryBufferManager::SetDestructionSyncToken( |
| 95 gfx::GpuMemoryBuffer* buffer, | 87 gfx::GpuMemoryBuffer* buffer, |
| 96 const gpu::SyncToken& sync_token) { | 88 const gpu::SyncToken& sync_token) { |
| 97 static_cast<gpu::GpuMemoryBufferImpl*>(buffer)->set_destruction_sync_token( | 89 static_cast<gpu::GpuMemoryBufferImpl*>(buffer)->set_destruction_sync_token( |
| 98 sync_token); | 90 sync_token); |
| 99 } | 91 } |
| 100 | 92 |
| 101 } // namespace content | 93 } // namespace content |
| OLD | NEW |