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 "../common/types.h" | 8 #include "gpu/command_buffer/common/types.h" |
9 | 9 |
10 namespace gpu { | 10 namespace gpu { |
11 | 11 |
12 typedef int32 CommandBufferOffset; | 12 typedef int32 CommandBufferOffset; |
13 const CommandBufferOffset kInvalidCommandBufferOffset = -1; | 13 const CommandBufferOffset kInvalidCommandBufferOffset = -1; |
14 | 14 |
15 // This enum must stay in sync with NPDeviceContext3DError. | 15 // This enum must stay in sync with NPDeviceContext3DError. |
16 namespace error { | 16 namespace error { |
17 enum Error { | 17 enum Error { |
18 kNoError, | 18 kNoError, |
(...skipping 30 matching lines...) Expand all Loading... |
49 | 49 |
50 // Common Command Buffer shared memory transfer buffer ID. | 50 // Common Command Buffer shared memory transfer buffer ID. |
51 const int32 kCommandBufferSharedMemoryId = 4; | 51 const int32 kCommandBufferSharedMemoryId = 4; |
52 | 52 |
53 // The size to set for the program cache. | 53 // The size to set for the program cache. |
54 const size_t kDefaultMaxProgramCacheMemoryBytes = 6 * 1024 * 1024; | 54 const size_t kDefaultMaxProgramCacheMemoryBytes = 6 * 1024 * 1024; |
55 | 55 |
56 } // namespace gpu | 56 } // namespace gpu |
57 | 57 |
58 #endif // GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_ | 58 #endif // GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_ |
OLD | NEW |