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

Side by Side Diff: gpu/command_buffer/common/buffer.h

Issue 268063002: Remove command_buffer/common/types.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef GPU_COMMAND_BUFFER_COMMON_BUFFER_H_ 5 #ifndef GPU_COMMAND_BUFFER_COMMON_BUFFER_H_
6 #define GPU_COMMAND_BUFFER_COMMON_BUFFER_H_ 6 #define GPU_COMMAND_BUFFER_COMMON_BUFFER_H_
7 7
8 #include "base/macros.h"
8 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/shared_memory.h" 11 #include "base/memory/shared_memory.h"
11 #include "gpu/command_buffer/common/types.h"
12 #include "gpu/gpu_export.h" 12 #include "gpu/gpu_export.h"
13 13
14 namespace base { 14 namespace base {
15 class SharedMemory; 15 class SharedMemory;
16 } 16 }
17 17
18 namespace gpu { 18 namespace gpu {
19 19
20 class GPU_EXPORT BufferBacking { 20 class GPU_EXPORT BufferBacking {
21 public: 21 public:
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 static inline scoped_refptr<Buffer> MakeBufferFromSharedMemory( 72 static inline scoped_refptr<Buffer> MakeBufferFromSharedMemory(
73 scoped_ptr<base::SharedMemory> shared_memory, 73 scoped_ptr<base::SharedMemory> shared_memory,
74 size_t size) { 74 size_t size) {
75 return new Buffer(MakeBackingFromSharedMemory(shared_memory.Pass(), size)); 75 return new Buffer(MakeBackingFromSharedMemory(shared_memory.Pass(), size));
76 } 76 }
77 77
78 } // namespace gpu 78 } // namespace gpu
79 79
80 #endif // GPU_COMMAND_BUFFER_COMMON_BUFFER_H_ 80 #endif // GPU_COMMAND_BUFFER_COMMON_BUFFER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698