| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 struct QuerySync { | 143 struct QuerySync { |
| 144 void Reset() { | 144 void Reset() { |
| 145 process_count = 0; | 145 process_count = 0; |
| 146 result = 0; | 146 result = 0; |
| 147 } | 147 } |
| 148 | 148 |
| 149 uint32 process_count; | 149 uint32 process_count; |
| 150 uint64 result; | 150 uint64 result; |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 struct AsyncUploadSync { |
| 154 void Reset() { |
| 155 async_token = 0; |
| 156 } |
| 157 |
| 158 uint32 async_token; |
| 159 }; |
| 160 |
| 153 COMPILE_ASSERT(sizeof(ProgramInput) == 20, ProgramInput_size_not_20); | 161 COMPILE_ASSERT(sizeof(ProgramInput) == 20, ProgramInput_size_not_20); |
| 154 COMPILE_ASSERT(offsetof(ProgramInput, type) == 0, | 162 COMPILE_ASSERT(offsetof(ProgramInput, type) == 0, |
| 155 OffsetOf_ProgramInput_type_not_0); | 163 OffsetOf_ProgramInput_type_not_0); |
| 156 COMPILE_ASSERT(offsetof(ProgramInput, size) == 4, | 164 COMPILE_ASSERT(offsetof(ProgramInput, size) == 4, |
| 157 OffsetOf_ProgramInput_size_not_4); | 165 OffsetOf_ProgramInput_size_not_4); |
| 158 COMPILE_ASSERT(offsetof(ProgramInput, location_offset) == 8, | 166 COMPILE_ASSERT(offsetof(ProgramInput, location_offset) == 8, |
| 159 OffsetOf_ProgramInput_location_offset_not_8); | 167 OffsetOf_ProgramInput_location_offset_not_8); |
| 160 COMPILE_ASSERT(offsetof(ProgramInput, name_offset) == 12, | 168 COMPILE_ASSERT(offsetof(ProgramInput, name_offset) == 12, |
| 161 OffsetOf_ProgramInput_name_offset_not_12); | 169 OffsetOf_ProgramInput_name_offset_not_12); |
| 162 COMPILE_ASSERT(offsetof(ProgramInput, name_length) == 16, | 170 COMPILE_ASSERT(offsetof(ProgramInput, name_length) == 16, |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 CommandHeader header; | 446 CommandHeader header; |
| 439 }; | 447 }; |
| 440 | 448 |
| 441 #pragma pack(pop) | 449 #pragma pack(pop) |
| 442 | 450 |
| 443 } // namespace cmd | 451 } // namespace cmd |
| 444 } // namespace gles2 | 452 } // namespace gles2 |
| 445 } // namespace gpu | 453 } // namespace gpu |
| 446 | 454 |
| 447 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 455 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
| OLD | NEW |