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/gles2/mojo_gpu_memory_buffer_manager.h" | 5 #include "components/mus/gles2/mojo_gpu_memory_buffer_manager.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "components/mus/gles2/mojo_gpu_memory_buffer.h" | 8 #include "components/mus/gles2/mojo_gpu_memory_buffer.h" |
9 | 9 |
10 namespace gles2 { | 10 namespace mus { |
11 | 11 |
12 MojoGpuMemoryBufferManager::MojoGpuMemoryBufferManager() {} | 12 MojoGpuMemoryBufferManager::MojoGpuMemoryBufferManager() {} |
13 | 13 |
14 MojoGpuMemoryBufferManager::~MojoGpuMemoryBufferManager() {} | 14 MojoGpuMemoryBufferManager::~MojoGpuMemoryBufferManager() {} |
15 | 15 |
16 scoped_ptr<gfx::GpuMemoryBuffer> | 16 scoped_ptr<gfx::GpuMemoryBuffer> |
17 MojoGpuMemoryBufferManager::AllocateGpuMemoryBuffer(const gfx::Size& size, | 17 MojoGpuMemoryBufferManager::AllocateGpuMemoryBuffer(const gfx::Size& size, |
18 gfx::BufferFormat format, | 18 gfx::BufferFormat format, |
19 gfx::BufferUsage usage) { | 19 gfx::BufferUsage usage) { |
20 return MojoGpuMemoryBufferImpl::Create(size, format, usage); | 20 return MojoGpuMemoryBufferImpl::Create(size, format, usage); |
21 } | 21 } |
22 | 22 |
23 gfx::GpuMemoryBuffer* | 23 gfx::GpuMemoryBuffer* |
24 MojoGpuMemoryBufferManager::GpuMemoryBufferFromClientBuffer( | 24 MojoGpuMemoryBufferManager::GpuMemoryBufferFromClientBuffer( |
25 ClientBuffer buffer) { | 25 ClientBuffer buffer) { |
26 return MojoGpuMemoryBufferImpl::FromClientBuffer(buffer); | 26 return MojoGpuMemoryBufferImpl::FromClientBuffer(buffer); |
27 } | 27 } |
28 | 28 |
29 void MojoGpuMemoryBufferManager::SetDestructionSyncPoint( | 29 void MojoGpuMemoryBufferManager::SetDestructionSyncPoint( |
30 gfx::GpuMemoryBuffer* buffer, | 30 gfx::GpuMemoryBuffer* buffer, |
31 uint32 sync_point) { | 31 uint32 sync_point) { |
32 NOTIMPLEMENTED(); | 32 NOTIMPLEMENTED(); |
33 } | 33 } |
34 | 34 |
35 } // namespace gles2 | 35 } // namespace mus |
OLD | NEW |