| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 is auto-generated from | 5 // This file is auto-generated from |
| 6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
| 7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
| 8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
| 9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
| 10 | 10 |
| (...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1202 GLuint _sync, | 1202 GLuint _sync, |
| 1203 GLbitfield _flags, | 1203 GLbitfield _flags, |
| 1204 GLuint64 _timeout, | 1204 GLuint64 _timeout, |
| 1205 uint32_t _result_shm_id, | 1205 uint32_t _result_shm_id, |
| 1206 uint32_t _result_shm_offset) { | 1206 uint32_t _result_shm_offset) { |
| 1207 static_cast<ValueType*>(cmd)->Init(_sync, _flags, _timeout, _result_shm_id, | 1207 static_cast<ValueType*>(cmd)->Init(_sync, _flags, _timeout, _result_shm_id, |
| 1208 _result_shm_offset); | 1208 _result_shm_offset); |
| 1209 return NextCmdAddress<ValueType>(cmd); | 1209 return NextCmdAddress<ValueType>(cmd); |
| 1210 } | 1210 } |
| 1211 | 1211 |
| 1212 GLuint64 timeout() const { | 1212 GLuint64 timeout() const volatile { |
| 1213 return static_cast<GLuint64>( | 1213 return static_cast<GLuint64>( |
| 1214 GLES2Util::MapTwoUint32ToUint64(timeout_0, timeout_1)); | 1214 GLES2Util::MapTwoUint32ToUint64(timeout_0, timeout_1)); |
| 1215 } | 1215 } |
| 1216 | 1216 |
| 1217 gpu::CommandHeader header; | 1217 gpu::CommandHeader header; |
| 1218 uint32_t sync; | 1218 uint32_t sync; |
| 1219 uint32_t flags; | 1219 uint32_t flags; |
| 1220 uint32_t timeout_0; | 1220 uint32_t timeout_0; |
| 1221 uint32_t timeout_1; | 1221 uint32_t timeout_1; |
| 1222 uint32_t result_shm_id; | 1222 uint32_t result_shm_id; |
| (...skipping 9538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10761 flags = _flags; | 10761 flags = _flags; |
| 10762 GLES2Util::MapUint64ToTwoUint32(static_cast<uint64_t>(_timeout), &timeout_0, | 10762 GLES2Util::MapUint64ToTwoUint32(static_cast<uint64_t>(_timeout), &timeout_0, |
| 10763 &timeout_1); | 10763 &timeout_1); |
| 10764 } | 10764 } |
| 10765 | 10765 |
| 10766 void* Set(void* cmd, GLuint _sync, GLbitfield _flags, GLuint64 _timeout) { | 10766 void* Set(void* cmd, GLuint _sync, GLbitfield _flags, GLuint64 _timeout) { |
| 10767 static_cast<ValueType*>(cmd)->Init(_sync, _flags, _timeout); | 10767 static_cast<ValueType*>(cmd)->Init(_sync, _flags, _timeout); |
| 10768 return NextCmdAddress<ValueType>(cmd); | 10768 return NextCmdAddress<ValueType>(cmd); |
| 10769 } | 10769 } |
| 10770 | 10770 |
| 10771 GLuint64 timeout() const { | 10771 GLuint64 timeout() const volatile { |
| 10772 return static_cast<GLuint64>( | 10772 return static_cast<GLuint64>( |
| 10773 GLES2Util::MapTwoUint32ToUint64(timeout_0, timeout_1)); | 10773 GLES2Util::MapTwoUint32ToUint64(timeout_0, timeout_1)); |
| 10774 } | 10774 } |
| 10775 | 10775 |
| 10776 gpu::CommandHeader header; | 10776 gpu::CommandHeader header; |
| 10777 uint32_t sync; | 10777 uint32_t sync; |
| 10778 uint32_t flags; | 10778 uint32_t flags; |
| 10779 uint32_t timeout_0; | 10779 uint32_t timeout_0; |
| 10780 uint32_t timeout_1; | 10780 uint32_t timeout_1; |
| 10781 }; | 10781 }; |
| (...skipping 2426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13208 SetHeader(); | 13208 SetHeader(); |
| 13209 GLES2Util::MapUint64ToTwoUint32(static_cast<uint64_t>(_release_count), | 13209 GLES2Util::MapUint64ToTwoUint32(static_cast<uint64_t>(_release_count), |
| 13210 &release_count_0, &release_count_1); | 13210 &release_count_0, &release_count_1); |
| 13211 } | 13211 } |
| 13212 | 13212 |
| 13213 void* Set(void* cmd, GLuint64 _release_count) { | 13213 void* Set(void* cmd, GLuint64 _release_count) { |
| 13214 static_cast<ValueType*>(cmd)->Init(_release_count); | 13214 static_cast<ValueType*>(cmd)->Init(_release_count); |
| 13215 return NextCmdAddress<ValueType>(cmd); | 13215 return NextCmdAddress<ValueType>(cmd); |
| 13216 } | 13216 } |
| 13217 | 13217 |
| 13218 GLuint64 release_count() const { | 13218 GLuint64 release_count() const volatile { |
| 13219 return static_cast<GLuint64>( | 13219 return static_cast<GLuint64>( |
| 13220 GLES2Util::MapTwoUint32ToUint64(release_count_0, release_count_1)); | 13220 GLES2Util::MapTwoUint32ToUint64(release_count_0, release_count_1)); |
| 13221 } | 13221 } |
| 13222 | 13222 |
| 13223 gpu::CommandHeader header; | 13223 gpu::CommandHeader header; |
| 13224 uint32_t release_count_0; | 13224 uint32_t release_count_0; |
| 13225 uint32_t release_count_1; | 13225 uint32_t release_count_1; |
| 13226 }; | 13226 }; |
| 13227 | 13227 |
| 13228 static_assert(sizeof(InsertFenceSyncCHROMIUM) == 12, | 13228 static_assert(sizeof(InsertFenceSyncCHROMIUM) == 12, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 13259 | 13259 |
| 13260 void* Set(void* cmd, | 13260 void* Set(void* cmd, |
| 13261 GLint _namespace_id, | 13261 GLint _namespace_id, |
| 13262 GLuint64 _command_buffer_id, | 13262 GLuint64 _command_buffer_id, |
| 13263 GLuint64 _release_count) { | 13263 GLuint64 _release_count) { |
| 13264 static_cast<ValueType*>(cmd)->Init(_namespace_id, _command_buffer_id, | 13264 static_cast<ValueType*>(cmd)->Init(_namespace_id, _command_buffer_id, |
| 13265 _release_count); | 13265 _release_count); |
| 13266 return NextCmdAddress<ValueType>(cmd); | 13266 return NextCmdAddress<ValueType>(cmd); |
| 13267 } | 13267 } |
| 13268 | 13268 |
| 13269 GLuint64 command_buffer_id() const { | 13269 GLuint64 command_buffer_id() const volatile { |
| 13270 return static_cast<GLuint64>(GLES2Util::MapTwoUint32ToUint64( | 13270 return static_cast<GLuint64>(GLES2Util::MapTwoUint32ToUint64( |
| 13271 command_buffer_id_0, command_buffer_id_1)); | 13271 command_buffer_id_0, command_buffer_id_1)); |
| 13272 } | 13272 } |
| 13273 | 13273 |
| 13274 GLuint64 release_count() const { | 13274 GLuint64 release_count() const volatile { |
| 13275 return static_cast<GLuint64>( | 13275 return static_cast<GLuint64>( |
| 13276 GLES2Util::MapTwoUint32ToUint64(release_count_0, release_count_1)); | 13276 GLES2Util::MapTwoUint32ToUint64(release_count_0, release_count_1)); |
| 13277 } | 13277 } |
| 13278 | 13278 |
| 13279 gpu::CommandHeader header; | 13279 gpu::CommandHeader header; |
| 13280 int32_t namespace_id; | 13280 int32_t namespace_id; |
| 13281 uint32_t command_buffer_id_0; | 13281 uint32_t command_buffer_id_0; |
| 13282 uint32_t command_buffer_id_1; | 13282 uint32_t command_buffer_id_1; |
| 13283 uint32_t release_count_0; | 13283 uint32_t release_count_0; |
| 13284 uint32_t release_count_1; | 13284 uint32_t release_count_1; |
| (...skipping 2160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15445 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, | 15445 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, |
| 15446 location) == 4, | 15446 location) == 4, |
| 15447 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " | 15447 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " |
| 15448 "location should be 4"); | 15448 "location should be 4"); |
| 15449 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, | 15449 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, |
| 15450 transpose) == 8, | 15450 transpose) == 8, |
| 15451 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " | 15451 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " |
| 15452 "transpose should be 8"); | 15452 "transpose should be 8"); |
| 15453 | 15453 |
| 15454 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15454 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| OLD | NEW |