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 "services/ui/ws/mus_gpu_memory_buffer_manager.h" | 5 #include "services/ui/ws/mus_gpu_memory_buffer_manager.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "gpu/ipc/client/gpu_memory_buffer_impl.h" | 8 #include "gpu/ipc/client/gpu_memory_buffer_impl.h" |
9 #include "gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.h" | 9 #include "gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.h" |
10 #include "gpu/ipc/common/gpu_memory_buffer_support.h" | 10 #include "gpu/ipc/common/gpu_memory_buffer_support.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 return nullptr; | 60 return nullptr; |
61 } | 61 } |
62 | 62 |
63 void MusGpuMemoryBufferManager::SetDestructionSyncToken( | 63 void MusGpuMemoryBufferManager::SetDestructionSyncToken( |
64 gfx::GpuMemoryBuffer* buffer, | 64 gfx::GpuMemoryBuffer* buffer, |
65 const gpu::SyncToken& sync_token) { | 65 const gpu::SyncToken& sync_token) { |
66 static_cast<gpu::GpuMemoryBufferImpl*>(buffer)->set_destruction_sync_token( | 66 static_cast<gpu::GpuMemoryBufferImpl*>(buffer)->set_destruction_sync_token( |
67 sync_token); | 67 sync_token); |
68 } | 68 } |
69 | 69 |
| 70 std::unique_ptr<gfx::GpuFence> MusGpuMemoryBufferManager::CreateGpuFence() { |
| 71 NOTIMPLEMENTED(); |
| 72 return nullptr; |
| 73 } |
| 74 |
| 75 std::unique_ptr<gfx::GpuFence> |
| 76 MusGpuMemoryBufferManager::CreateGpuFenceFromHandle( |
| 77 const gfx::GpuFenceHandle& handle) { |
| 78 NOTIMPLEMENTED(); |
| 79 return nullptr; |
| 80 } |
| 81 |
| 82 gfx::GpuFence* MusGpuMemoryBufferManager::GpuFenceFromClientFence( |
| 83 ClientFence fence) { |
| 84 NOTIMPLEMENTED(); |
| 85 return nullptr; |
| 86 } |
| 87 |
70 void MusGpuMemoryBufferManager::DestroyGpuMemoryBuffer( | 88 void MusGpuMemoryBufferManager::DestroyGpuMemoryBuffer( |
71 gfx::GpuMemoryBufferId id, | 89 gfx::GpuMemoryBufferId id, |
72 int client_id, | 90 int client_id, |
73 bool is_native, | 91 bool is_native, |
74 const gpu::SyncToken& sync_token) { | 92 const gpu::SyncToken& sync_token) { |
75 if (is_native) { | 93 if (is_native) { |
76 gpu_service_->DestroyGpuMemoryBuffer(id, client_id, sync_token); | 94 gpu_service_->DestroyGpuMemoryBuffer(id, client_id, sync_token); |
77 } | 95 } |
78 } | 96 } |
79 | 97 |
80 } // namespace ws | 98 } // namespace ws |
81 } // namespace ui | 99 } // namespace ui |
OLD | NEW |