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 // This file defines the GLES2 command buffer commands. | 5 // This file defines the GLES2 command buffer commands. |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
9 | 9 |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 // These are used when contexts share resources. | 53 // These are used when contexts share resources. |
54 enum IdNamespaces { | 54 enum IdNamespaces { |
55 kBuffers, | 55 kBuffers, |
56 kFramebuffers, | 56 kFramebuffers, |
57 kProgramsAndShaders, | 57 kProgramsAndShaders, |
58 kRenderbuffers, | 58 kRenderbuffers, |
59 kTextures, | 59 kTextures, |
60 kQueries, | 60 kQueries, |
61 kVertexArrays, | 61 kVertexArrays, |
62 kValuebuffers, | |
63 kNumIdNamespaces | 62 kNumIdNamespaces |
64 }; | 63 }; |
65 | 64 |
66 // These numbers must not change | 65 // These numbers must not change |
67 COMPILE_ASSERT(kBuffers == 0, kBuffers_is_not_0); | 66 COMPILE_ASSERT(kBuffers == 0, kBuffers_is_not_0); |
68 COMPILE_ASSERT(kFramebuffers == 1, kFramebuffers_is_not_1); | 67 COMPILE_ASSERT(kFramebuffers == 1, kFramebuffers_is_not_1); |
69 COMPILE_ASSERT(kProgramsAndShaders == 2, kProgramsAndShaders_is_not_2); | 68 COMPILE_ASSERT(kProgramsAndShaders == 2, kProgramsAndShaders_is_not_2); |
70 COMPILE_ASSERT(kRenderbuffers == 3, kRenderbuffers_is_not_3); | 69 COMPILE_ASSERT(kRenderbuffers == 3, kRenderbuffers_is_not_3); |
71 COMPILE_ASSERT(kTextures == 4, kTextures_is_not_4); | 70 COMPILE_ASSERT(kTextures == 4, kTextures_is_not_4); |
72 | 71 |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 OffsetOf_CreateAndConsumeTextureCHROMIUMImmediate_client_id_not_8); | 267 OffsetOf_CreateAndConsumeTextureCHROMIUMImmediate_client_id_not_8); |
269 | 268 |
270 | 269 |
271 #pragma pack(pop) | 270 #pragma pack(pop) |
272 | 271 |
273 } // namespace cmd | 272 } // namespace cmd |
274 } // namespace gles2 | 273 } // namespace gles2 |
275 } // namespace gpu | 274 } // namespace gpu |
276 | 275 |
277 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 276 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
OLD | NEW |