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_CONSTANTS_H_ | 5 #ifndef GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_ |
6 #define GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_ | 6 #define GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
| 11 // From glextchromium.h. |
| 12 #ifndef GL_SYNC_TOKEN_SIZE_CHROMIUM |
| 13 #define GL_SYNC_TOKEN_SIZE_CHROMIUM 24 |
| 14 #endif |
| 15 |
11 namespace gpu { | 16 namespace gpu { |
12 | 17 |
13 typedef int32_t CommandBufferOffset; | 18 typedef int32_t CommandBufferOffset; |
14 const CommandBufferOffset kInvalidCommandBufferOffset = -1; | 19 const CommandBufferOffset kInvalidCommandBufferOffset = -1; |
15 | 20 |
16 // This enum must stay in sync with NPDeviceContext3DError. | 21 // This enum must stay in sync with NPDeviceContext3DError. |
17 namespace error { | 22 namespace error { |
18 enum Error { | 23 enum Error { |
19 kNoError, | 24 kNoError, |
20 kInvalidSize, | 25 kInvalidSize, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 IN_PROCESS, | 79 IN_PROCESS, |
75 MOJO, | 80 MOJO, |
76 | 81 |
77 NUM_COMMAND_BUFFER_NAMESPACES | 82 NUM_COMMAND_BUFFER_NAMESPACES |
78 }; | 83 }; |
79 | 84 |
80 | 85 |
81 } // namespace gpu | 86 } // namespace gpu |
82 | 87 |
83 #endif // GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_ | 88 #endif // GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_ |
OLD | NEW |