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

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

Issue 1351013002: Revert of Mandoline UI Process: Update namespaces and file names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_buffer_backing.h" 5 #include "components/mus/gles2/mojo_buffer_backing.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace mus { 9 namespace gles2 {
10 10
11 MojoBufferBacking::MojoBufferBacking(mojo::ScopedSharedBufferHandle handle, 11 MojoBufferBacking::MojoBufferBacking(mojo::ScopedSharedBufferHandle handle,
12 void* memory, 12 void* memory,
13 size_t size) 13 size_t size)
14 : handle_(handle.Pass()), memory_(memory), size_(size) {} 14 : handle_(handle.Pass()), memory_(memory), size_(size) {}
15 15
16 MojoBufferBacking::~MojoBufferBacking() { 16 MojoBufferBacking::~MojoBufferBacking() {
17 mojo::UnmapBuffer(memory_); 17 mojo::UnmapBuffer(memory_);
18 } 18 }
19 19
(...skipping 10 matching lines...) Expand all
30 return scoped_ptr<BufferBacking>( 30 return scoped_ptr<BufferBacking>(
31 new MojoBufferBacking(handle.Pass(), memory, size)); 31 new MojoBufferBacking(handle.Pass(), memory, size));
32 } 32 }
33 void* MojoBufferBacking::GetMemory() const { 33 void* MojoBufferBacking::GetMemory() const {
34 return memory_; 34 return memory_;
35 } 35 }
36 size_t MojoBufferBacking::GetSize() const { 36 size_t MojoBufferBacking::GetSize() const {
37 return size_; 37 return size_;
38 } 38 }
39 39
40 } // namespace mus 40 } // namespace gles2
OLDNEW
« no previous file with comments | « components/mus/gles2/mojo_buffer_backing.h ('k') | components/mus/gles2/mojo_gpu_memory_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698