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

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

Issue 2532763002: gpu: Cleanup class/struct forward declarations (Closed)
Patch Set: Created 4 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
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "gpu/command_buffer/common/buffer.h" 12 #include "gpu/command_buffer/common/buffer.h"
13 #include "gpu/command_buffer/common/constants.h" 13 #include "gpu/command_buffer/common/constants.h"
14 #include "gpu/gpu_export.h" 14 #include "gpu/gpu_export.h"
15 15
16 namespace base {
17 class SharedMemory;
18 }
19
20 namespace gpu { 16 namespace gpu {
21 17
22 // Common interface for CommandBuffer implementations. 18 // Common interface for CommandBuffer implementations.
23 class GPU_EXPORT CommandBuffer { 19 class GPU_EXPORT CommandBuffer {
24 public: 20 public:
25 struct State { 21 struct State {
26 State() 22 State()
27 : get_offset(0), 23 : get_offset(0),
28 token(-1), 24 token(-1),
29 error(error::kNoError), 25 error(error::kNoError),
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 virtual error::Error GetLastError(); 123 virtual error::Error GetLastError();
128 #endif 124 #endif
129 125
130 private: 126 private:
131 DISALLOW_COPY_AND_ASSIGN(CommandBuffer); 127 DISALLOW_COPY_AND_ASSIGN(CommandBuffer);
132 }; 128 };
133 129
134 } // namespace gpu 130 } // namespace gpu
135 131
136 #endif // GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_H_ 132 #endif // GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gpu_control.h ('k') | gpu/command_buffer/common/command_buffer_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698