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

Side by Side Diff: services/gles2/mojo_buffer_backing.cc

Issue 769173002: Move native_viewport and gles2 service impls to //services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « services/gles2/mojo_buffer_backing.h ('k') | services/native_viewport/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "mojo/services/gles2/mojo_buffer_backing.h" 5 #include "services/gles2/mojo_buffer_backing.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace mojo { 9 namespace mojo {
10 namespace gles2 { 10 namespace gles2 {
11 11
12 MojoBufferBacking::MojoBufferBacking(mojo::ScopedSharedBufferHandle handle, 12 MojoBufferBacking::MojoBufferBacking(mojo::ScopedSharedBufferHandle handle,
13 void* memory, 13 void* memory,
14 size_t size) 14 size_t size)
15 : handle_(handle.Pass()), memory_(memory), size_(size) {} 15 : handle_(handle.Pass()), memory_(memory), size_(size) {}
(...skipping 11 matching lines...) Expand all
27 return scoped_ptr<BufferBacking>(); 27 return scoped_ptr<BufferBacking>();
28 DCHECK(memory); 28 DCHECK(memory);
29 return scoped_ptr<BufferBacking>( 29 return scoped_ptr<BufferBacking>(
30 new MojoBufferBacking(handle.Pass(), memory, size)); 30 new MojoBufferBacking(handle.Pass(), memory, size));
31 } 31 }
32 void* MojoBufferBacking::GetMemory() const { return memory_; } 32 void* MojoBufferBacking::GetMemory() const { return memory_; }
33 size_t MojoBufferBacking::GetSize() const { return size_; } 33 size_t MojoBufferBacking::GetSize() const { return size_; }
34 34
35 } // namespace gles2 35 } // namespace gles2
36 } // namespace mojo 36 } // namespace mojo
OLDNEW
« no previous file with comments | « services/gles2/mojo_buffer_backing.h ('k') | services/native_viewport/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698