Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Side by Side Diff: components/mus/gles2/mojo_gpu_memory_buffer_manager.cc

Issue 1344573002: Mandoline: Rename components/view_manager to components/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/view_manager/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/view_manager/gles2/mojo_gpu_memory_buffer.h" 8 #include "components/mus/gles2/mojo_gpu_memory_buffer.h"
9 9
10 namespace gles2 { 10 namespace gles2 {
11 11
12 MojoGpuMemoryBufferManager::MojoGpuMemoryBufferManager() { 12 MojoGpuMemoryBufferManager::MojoGpuMemoryBufferManager() {}
13 }
14 13
15 MojoGpuMemoryBufferManager::~MojoGpuMemoryBufferManager() { 14 MojoGpuMemoryBufferManager::~MojoGpuMemoryBufferManager() {}
16 }
17 15
18 scoped_ptr<gfx::GpuMemoryBuffer> 16 scoped_ptr<gfx::GpuMemoryBuffer>
19 MojoGpuMemoryBufferManager::AllocateGpuMemoryBuffer(const gfx::Size& size, 17 MojoGpuMemoryBufferManager::AllocateGpuMemoryBuffer(const gfx::Size& size,
20 gfx::BufferFormat format, 18 gfx::BufferFormat format,
21 gfx::BufferUsage usage) { 19 gfx::BufferUsage usage) {
22 return MojoGpuMemoryBufferImpl::Create(size, format, usage); 20 return MojoGpuMemoryBufferImpl::Create(size, format, usage);
23 } 21 }
24 22
25 gfx::GpuMemoryBuffer* 23 gfx::GpuMemoryBuffer*
26 MojoGpuMemoryBufferManager::GpuMemoryBufferFromClientBuffer( 24 MojoGpuMemoryBufferManager::GpuMemoryBufferFromClientBuffer(
27 ClientBuffer buffer) { 25 ClientBuffer buffer) {
28 return MojoGpuMemoryBufferImpl::FromClientBuffer(buffer); 26 return MojoGpuMemoryBufferImpl::FromClientBuffer(buffer);
29 } 27 }
30 28
31 void MojoGpuMemoryBufferManager::SetDestructionSyncPoint( 29 void MojoGpuMemoryBufferManager::SetDestructionSyncPoint(
32 gfx::GpuMemoryBuffer* buffer, uint32 sync_point) { 30 gfx::GpuMemoryBuffer* buffer,
31 uint32 sync_point) {
33 NOTIMPLEMENTED(); 32 NOTIMPLEMENTED();
34 } 33 }
35 34
36 } // namespace gles2 35 } // namespace gles2
OLDNEW
« no previous file with comments | « components/mus/gles2/mojo_gpu_memory_buffer_manager.h ('k') | components/mus/gles2/raster_thread_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698