| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/mus/common/mojo_gpu_memory_buffer_manager.h" | 5 #include "components/mus/common/mojo_gpu_memory_buffer_manager.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "components/mus/common/mojo_gpu_memory_buffer.h" | 8 #include "components/mus/common/mojo_gpu_memory_buffer.h" |
| 9 | 9 |
| 10 namespace mus { | 10 namespace mus { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 std::unique_ptr<gfx::GpuMemoryBuffer> | 25 std::unique_ptr<gfx::GpuMemoryBuffer> |
| 26 MojoGpuMemoryBufferManager::CreateGpuMemoryBufferFromHandle( | 26 MojoGpuMemoryBufferManager::CreateGpuMemoryBufferFromHandle( |
| 27 const gfx::GpuMemoryBufferHandle& handle, | 27 const gfx::GpuMemoryBufferHandle& handle, |
| 28 const gfx::Size& size, | 28 const gfx::Size& size, |
| 29 gfx::BufferFormat format) { | 29 gfx::BufferFormat format) { |
| 30 NOTIMPLEMENTED(); | 30 NOTIMPLEMENTED(); |
| 31 return nullptr; | 31 return nullptr; |
| 32 } | 32 } |
| 33 | 33 |
| 34 std::unique_ptr<gfx::GpuMemoryBuffer> | |
| 35 MojoGpuMemoryBufferManager::CreateGpuMemoryBufferFromClientId( | |
| 36 int client_id, | |
| 37 const gfx::GpuMemoryBufferId& gpu_memory_buffer_id) { | |
| 38 NOTIMPLEMENTED(); | |
| 39 return nullptr; | |
| 40 } | |
| 41 | |
| 42 gfx::GpuMemoryBuffer* | 34 gfx::GpuMemoryBuffer* |
| 43 MojoGpuMemoryBufferManager::GpuMemoryBufferFromClientBuffer( | 35 MojoGpuMemoryBufferManager::GpuMemoryBufferFromClientBuffer( |
| 44 ClientBuffer buffer) { | 36 ClientBuffer buffer) { |
| 45 return MojoGpuMemoryBufferImpl::FromClientBuffer(buffer); | 37 return MojoGpuMemoryBufferImpl::FromClientBuffer(buffer); |
| 46 } | 38 } |
| 47 | 39 |
| 48 void MojoGpuMemoryBufferManager::SetDestructionSyncToken( | 40 void MojoGpuMemoryBufferManager::SetDestructionSyncToken( |
| 49 gfx::GpuMemoryBuffer* buffer, | 41 gfx::GpuMemoryBuffer* buffer, |
| 50 const gpu::SyncToken& sync_token) { | 42 const gpu::SyncToken& sync_token) { |
| 51 NOTIMPLEMENTED(); | 43 NOTIMPLEMENTED(); |
| 52 } | 44 } |
| 53 | 45 |
| 54 } // namespace mus | 46 } // namespace mus |
| OLD | NEW |