OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "services/ui/common/mojo_gpu_memory_buffer_manager.h" | |
6 | |
7 #include "base/logging.h" | |
8 #include "services/ui/common/mojo_gpu_memory_buffer.h" | |
9 | |
10 namespace ui { | |
11 | |
12 MojoGpuMemoryBufferManager::MojoGpuMemoryBufferManager() {} | |
13 | |
14 MojoGpuMemoryBufferManager::~MojoGpuMemoryBufferManager() {} | |
15 | |
16 std::unique_ptr<gfx::GpuMemoryBuffer> | |
17 MojoGpuMemoryBufferManager::AllocateGpuMemoryBuffer( | |
18 const gfx::Size& size, | |
19 gfx::BufferFormat format, | |
20 gfx::BufferUsage usage, | |
21 gpu::SurfaceHandle surface_handle) { | |
22 return MojoGpuMemoryBufferImpl::Create(size, format, usage); | |
23 } | |
24 | |
25 std::unique_ptr<gfx::GpuMemoryBuffer> | |
26 MojoGpuMemoryBufferManager::CreateGpuMemoryBufferFromHandle( | |
27 const gfx::GpuMemoryBufferHandle& handle, | |
28 const gfx::Size& size, | |
29 gfx::BufferFormat format) { | |
30 NOTIMPLEMENTED(); | |
31 return nullptr; | |
32 } | |
33 | |
34 gfx::GpuMemoryBuffer* | |
35 MojoGpuMemoryBufferManager::GpuMemoryBufferFromClientBuffer( | |
36 ClientBuffer buffer) { | |
37 return MojoGpuMemoryBufferImpl::FromClientBuffer(buffer); | |
38 } | |
39 | |
40 void MojoGpuMemoryBufferManager::SetDestructionSyncToken( | |
41 gfx::GpuMemoryBuffer* buffer, | |
42 const gpu::SyncToken& sync_token) { | |
43 NOTIMPLEMENTED(); | |
44 } | |
45 | |
46 } // namespace ui | |
OLD | NEW |