| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #pragma pack(push, 1) | 45 #pragma pack(push, 1) |
| 46 | 46 |
| 47 namespace id_namespaces { | 47 namespace id_namespaces { |
| 48 | 48 |
| 49 // These are used when contexts share resources. | 49 // These are used when contexts share resources. |
| 50 enum IdNamespaces { | 50 enum IdNamespaces { |
| 51 kBuffers, | 51 kBuffers, |
| 52 kFramebuffers, | 52 kFramebuffers, |
| 53 kProgramsAndShaders, | 53 kProgramsAndShaders, |
| 54 kRenderbuffers, | 54 kRenderbuffers, |
| 55 kTextures | 55 kTextures, |
| 56 kNumIdNamespaces |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 // These numbers must not change | 59 // These numbers must not change |
| 59 COMPILE_ASSERT(kBuffers == 0, kBuffers_is_not_0); | 60 COMPILE_ASSERT(kBuffers == 0, kBuffers_is_not_0); |
| 60 COMPILE_ASSERT(kFramebuffers == 1, kFramebuffers_is_not_1); | 61 COMPILE_ASSERT(kFramebuffers == 1, kFramebuffers_is_not_1); |
| 61 COMPILE_ASSERT(kProgramsAndShaders == 2, kProgramsAndShaders_is_not_2); | 62 COMPILE_ASSERT(kProgramsAndShaders == 2, kProgramsAndShaders_is_not_2); |
| 62 COMPILE_ASSERT(kRenderbuffers == 3, kRenderbuffers_is_not_3); | 63 COMPILE_ASSERT(kRenderbuffers == 3, kRenderbuffers_is_not_3); |
| 63 COMPILE_ASSERT(kTextures == 4, kTextures_is_not_4); | 64 COMPILE_ASSERT(kTextures == 4, kTextures_is_not_4); |
| 64 | 65 |
| 65 } // namespace id_namespaces | 66 } // namespace id_namespaces |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 COMPILE_ASSERT(offsetof(GetUniformLocationBucket, location_shm_offset) == 16, | 519 COMPILE_ASSERT(offsetof(GetUniformLocationBucket, location_shm_offset) == 16, |
| 519 OffsetOf_GetUniformLocationBucket_location_shm_offset_not_16); | 520 OffsetOf_GetUniformLocationBucket_location_shm_offset_not_16); |
| 520 | 521 |
| 521 #pragma pack(pop) | 522 #pragma pack(pop) |
| 522 | 523 |
| 523 } // namespace gles2 | 524 } // namespace gles2 |
| 524 } // namespace gpu | 525 } // namespace gpu |
| 525 | 526 |
| 526 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 527 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
| 527 | 528 |
| OLD | NEW |