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

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

Issue 9582024: Revert 124702 - GPU: Buld most of the gpu as a single DLL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « gpu/command_buffer/client/transfer_buffer.h ('k') | gpu/command_buffer/common/id_allocator.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMMAND_BUFFER_H_ 5 #ifndef GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_H_
6 #define GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_H_ 6 #define GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_H_
7 7
8 #include "../../gpu_export.h"
9 #include "../common/buffer.h" 8 #include "../common/buffer.h"
10 #include "../common/constants.h" 9 #include "../common/constants.h"
11 10
12 namespace base { 11 namespace base {
13 class SharedMemory; 12 class SharedMemory;
14 } 13 }
15 14
16 namespace gpu { 15 namespace gpu {
17 16
18 // Common interface for CommandBuffer implementations. 17 // Common interface for CommandBuffer implementations.
19 class GPU_EXPORT CommandBuffer { 18 class CommandBuffer {
20 public: 19 public:
21 enum { 20 enum {
22 kMaxCommandBufferSize = 4 * 1024 * 1024 21 kMaxCommandBufferSize = 4 * 1024 * 1024
23 }; 22 };
24 23
25 struct State { 24 struct State {
26 State() 25 State()
27 : num_entries(0), 26 : num_entries(0),
28 get_offset(0), 27 get_offset(0),
29 put_offset(0), 28 put_offset(0),
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // implementation. 140 // implementation.
142 virtual error::Error GetLastError(); 141 virtual error::Error GetLastError();
143 142
144 private: 143 private:
145 DISALLOW_COPY_AND_ASSIGN(CommandBuffer); 144 DISALLOW_COPY_AND_ASSIGN(CommandBuffer);
146 }; 145 };
147 146
148 } // namespace gpu 147 } // namespace gpu
149 148
150 #endif // GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_H_ 149 #endif // GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/transfer_buffer.h ('k') | gpu/command_buffer/common/id_allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698