| 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 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 // GL_OUT_OF_MEMORY caused this context to be lost. | 46 // GL_OUT_OF_MEMORY caused this context to be lost. |
| 47 kOutOfMemory, | 47 kOutOfMemory, |
| 48 | 48 |
| 49 // A failure to make the context current caused it to be lost. | 49 // A failure to make the context current caused it to be lost. |
| 50 kMakeCurrentFailed, | 50 kMakeCurrentFailed, |
| 51 | 51 |
| 52 // The GPU channel was lost. This error is set client-side. | 52 // The GPU channel was lost. This error is set client-side. |
| 53 kGpuChannelLost, | 53 kGpuChannelLost, |
| 54 | 54 |
| 55 // The GPU process sent an invalid message/reply. This error is set |
| 56 // client-side. |
| 57 kInvalidGpuMessage, |
| 58 |
| 55 kContextLostReasonLast = kGpuChannelLost | 59 kContextLostReasonLast = kGpuChannelLost |
| 56 }; | 60 }; |
| 57 } | 61 } |
| 58 | 62 |
| 59 // Invalid shared memory Id, returned by RegisterSharedMemory in case of | 63 // Invalid shared memory Id, returned by RegisterSharedMemory in case of |
| 60 // failure. | 64 // failure. |
| 61 const int32_t kInvalidSharedMemoryId = -1; | 65 const int32_t kInvalidSharedMemoryId = -1; |
| 62 | 66 |
| 63 // Common Command Buffer shared memory transfer buffer ID. | 67 // Common Command Buffer shared memory transfer buffer ID. |
| 64 const int32_t kCommandBufferSharedMemoryId = 4; | 68 const int32_t kCommandBufferSharedMemoryId = 4; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 75 MOJO, | 79 MOJO, |
| 76 MOJO_LOCAL, | 80 MOJO_LOCAL, |
| 77 OLD_SYNC_POINTS, | 81 OLD_SYNC_POINTS, |
| 78 | 82 |
| 79 NUM_COMMAND_BUFFER_NAMESPACES | 83 NUM_COMMAND_BUFFER_NAMESPACES |
| 80 }; | 84 }; |
| 81 | 85 |
| 82 } // namespace gpu | 86 } // namespace gpu |
| 83 | 87 |
| 84 #endif // GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_ | 88 #endif // GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_ |
| OLD | NEW |