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