OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |