| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // failure. | 60 // failure. |
| 61 const int32_t kInvalidSharedMemoryId = -1; | 61 const int32_t kInvalidSharedMemoryId = -1; |
| 62 | 62 |
| 63 // Common Command Buffer shared memory transfer buffer ID. | 63 // Common Command Buffer shared memory transfer buffer ID. |
| 64 const int32_t kCommandBufferSharedMemoryId = 4; | 64 const int32_t kCommandBufferSharedMemoryId = 4; |
| 65 | 65 |
| 66 // The size to set for the program cache. | 66 // The size to set for the program cache. |
| 67 const size_t kDefaultMaxProgramCacheMemoryBytes = 6 * 1024 * 1024; | 67 const size_t kDefaultMaxProgramCacheMemoryBytes = 6 * 1024 * 1024; |
| 68 | 68 |
| 69 // Namespace used to separate various command buffer types. | 69 // Namespace used to separate various command buffer types. |
| 70 enum CommandBufferNamespace : int8_t { | 70 enum CommandBufferNamespace { |
| 71 INVALID = -1, | 71 INVALID = -1, |
| 72 | 72 |
| 73 GPU_IO, | 73 GPU_IO, |
| 74 IN_PROCESS, | 74 IN_PROCESS, |
| 75 MOJO, | 75 MOJO, |
| 76 MOJO_LOCAL, | 76 MOJO_LOCAL, |
| 77 OLD_SYNC_POINTS, | 77 OLD_SYNC_POINTS, |
| 78 | 78 |
| 79 NUM_COMMAND_BUFFER_NAMESPACES | 79 NUM_COMMAND_BUFFER_NAMESPACES |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace gpu | 82 } // namespace gpu |
| 83 | 83 |
| 84 #endif // GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_ | 84 #endif // GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_ |
| OLD | NEW |