OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/surfaces/ozone_gpu_memory_buffer_manager.h" | 5 #include "components/mus/gpu/gpu_memory_buffer_manager_mus_local.h" |
6 | |
7 #include "components/mus/gles2/ozone_gpu_memory_buffer.h" | |
8 #include "gpu/command_buffer/common/gpu_memory_buffer_support.h" | |
9 #include "ui/gfx/buffer_types.h" | |
10 | 6 |
11 namespace mus { | 7 namespace mus { |
12 | 8 |
13 OzoneGpuMemoryBufferManager::OzoneGpuMemoryBufferManager() {} | 9 GpuMemoryBufferManagerMusLocal::GpuMemoryBufferManagerMusLocal( |
| 10 int gpu_client_id, |
| 11 uint64_t gpu_client_tracing_id) {} |
14 | 12 |
15 OzoneGpuMemoryBufferManager::~OzoneGpuMemoryBufferManager() {} | 13 GpuMemoryBufferManagerMusLocal::~GpuMemoryBufferManagerMusLocal() {} |
16 | 14 |
17 std::unique_ptr<gfx::GpuMemoryBuffer> | 15 std::unique_ptr<gfx::GpuMemoryBuffer> |
18 OzoneGpuMemoryBufferManager::AllocateGpuMemoryBuffer( | 16 GpuMemoryBufferManagerMusLocal::AllocateGpuMemoryBuffer( |
19 const gfx::Size& size, | 17 const gfx::Size& size, |
20 gfx::BufferFormat format, | 18 gfx::BufferFormat format, |
21 gfx::BufferUsage usage, | 19 gfx::BufferUsage usage, |
22 gpu::SurfaceHandle surface_handle) { | 20 gpu::SurfaceHandle surface_handle) { |
23 return OzoneGpuMemoryBuffer::CreateOzoneGpuMemoryBuffer( | 21 NOTIMPLEMENTED(); |
24 size, format, gfx::BufferUsage::SCANOUT, surface_handle); | 22 return std::unique_ptr<gfx::GpuMemoryBuffer>(); |
25 } | 23 } |
26 | 24 |
27 std::unique_ptr<gfx::GpuMemoryBuffer> | 25 std::unique_ptr<gfx::GpuMemoryBuffer> |
28 OzoneGpuMemoryBufferManager::CreateGpuMemoryBufferFromHandle( | 26 GpuMemoryBufferManagerMusLocal::CreateGpuMemoryBufferFromHandle( |
29 const gfx::GpuMemoryBufferHandle& handle, | 27 const gfx::GpuMemoryBufferHandle& handle, |
30 const gfx::Size& size, | 28 const gfx::Size& size, |
31 gfx::BufferFormat format) { | 29 gfx::BufferFormat format) { |
32 NOTIMPLEMENTED(); | 30 NOTIMPLEMENTED(); |
33 return nullptr; | 31 return std::unique_ptr<gfx::GpuMemoryBuffer>(); |
34 } | 32 } |
35 | 33 |
36 std::unique_ptr<gfx::GpuMemoryBuffer> | 34 std::unique_ptr<gfx::GpuMemoryBuffer> |
37 OzoneGpuMemoryBufferManager::CreateGpuMemoryBufferFromClientId( | 35 GpuMemoryBufferManagerMusLocal::CreateGpuMemoryBufferFromClientId( |
38 int client_id, | 36 int client_id, |
39 const gfx::GpuMemoryBufferId& gpu_memory_buffer_id) { | 37 const gfx::GpuMemoryBufferId& gpu_memory_buffer_id) { |
40 NOTIMPLEMENTED(); | 38 NOTIMPLEMENTED(); |
41 return nullptr; | 39 return std::unique_ptr<gfx::GpuMemoryBuffer>(); |
42 } | 40 } |
43 | 41 |
44 gfx::GpuMemoryBuffer* | 42 gfx::GpuMemoryBuffer* |
45 OzoneGpuMemoryBufferManager::GpuMemoryBufferFromClientBuffer( | 43 GpuMemoryBufferManagerMusLocal::GpuMemoryBufferFromClientBuffer( |
46 ClientBuffer buffer) { | 44 ClientBuffer buffer) { |
47 NOTIMPLEMENTED(); | 45 NOTIMPLEMENTED(); |
48 return nullptr; | 46 return nullptr; |
49 } | 47 } |
50 | 48 |
51 void OzoneGpuMemoryBufferManager::SetDestructionSyncToken( | 49 void GpuMemoryBufferManagerMusLocal::SetDestructionSyncToken( |
52 gfx::GpuMemoryBuffer* buffer, | 50 gfx::GpuMemoryBuffer* buffer, |
53 const gpu::SyncToken& sync_token) { | 51 const gpu::SyncToken& sync_token) { |
54 NOTIMPLEMENTED(); | 52 NOTIMPLEMENTED(); |
55 } | 53 } |
56 | 54 |
57 } // namespace mus | 55 } // namespace mus |
OLD | NEW |