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