Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_format_autogen.h

Issue 488011: Another round of gcc fixes for GPU command buffers. (Closed)
Patch Set: Merge fixes Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // This file is auto-generated. DO NOT EDIT! 1 // This file is auto-generated. DO NOT EDIT!
2 2
3 #pragma pack(push, 1) 3 #pragma pack(push, 1)
4 4
5 struct ActiveTexture { 5 struct ActiveTexture {
6 typedef ActiveTexture ValueType; 6 typedef ActiveTexture ValueType;
7 static const CommandId kCmdId = kActiveTexture; 7 static const CommandId kCmdId = kActiveTexture;
8 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 8 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
9 9
10 static uint32 ComputeSize() { 10 static uint32 ComputeSize() {
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 SetHeader(); 907 SetHeader();
908 s = _s; 908 s = _s;
909 } 909 }
910 910
911 void* Set(void* cmd, GLint _s) { 911 void* Set(void* cmd, GLint _s) {
912 static_cast<ValueType*>(cmd)->Init(_s); 912 static_cast<ValueType*>(cmd)->Init(_s);
913 return NextCmdAddress<ValueType>(cmd); 913 return NextCmdAddress<ValueType>(cmd);
914 } 914 }
915 915
916 gpu::CommandHeader header; 916 gpu::CommandHeader header;
917 uint32 s; 917 int32 s;
918 }; 918 };
919 919
920 COMPILE_ASSERT(sizeof(ClearStencil) == 8, 920 COMPILE_ASSERT(sizeof(ClearStencil) == 8,
921 Sizeof_ClearStencil_is_not_8); 921 Sizeof_ClearStencil_is_not_8);
922 COMPILE_ASSERT(offsetof(ClearStencil, header) == 0, 922 COMPILE_ASSERT(offsetof(ClearStencil, header) == 0,
923 OffsetOf_ClearStencil_header_not_0); 923 OffsetOf_ClearStencil_header_not_0);
924 COMPILE_ASSERT(offsetof(ClearStencil, s) == 4, 924 COMPILE_ASSERT(offsetof(ClearStencil, s) == 4,
925 OffsetOf_ClearStencil_s_not_4); 925 OffsetOf_ClearStencil_s_not_4);
926 926
927 struct ColorMask { 927 struct ColorMask {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 uint32 _data_shm_id, uint32 _data_shm_offset) { 1042 uint32 _data_shm_id, uint32 _data_shm_offset) {
1043 static_cast<ValueType*>( 1043 static_cast<ValueType*>(
1044 cmd)->Init( 1044 cmd)->Init(
1045 _target, _level, _internalformat, _width, _height, _border, 1045 _target, _level, _internalformat, _width, _height, _border,
1046 _imageSize, _data_shm_id, _data_shm_offset); 1046 _imageSize, _data_shm_id, _data_shm_offset);
1047 return NextCmdAddress<ValueType>(cmd); 1047 return NextCmdAddress<ValueType>(cmd);
1048 } 1048 }
1049 1049
1050 gpu::CommandHeader header; 1050 gpu::CommandHeader header;
1051 uint32 target; 1051 uint32 target;
1052 uint32 level; 1052 int32 level;
1053 uint32 internalformat; 1053 uint32 internalformat;
1054 uint32 width; 1054 int32 width;
1055 uint32 height; 1055 int32 height;
1056 uint32 border; 1056 int32 border;
1057 uint32 imageSize; 1057 int32 imageSize;
1058 uint32 data_shm_id; 1058 uint32 data_shm_id;
1059 uint32 data_shm_offset; 1059 uint32 data_shm_offset;
1060 }; 1060 };
1061 1061
1062 COMPILE_ASSERT(sizeof(CompressedTexImage2D) == 40, 1062 COMPILE_ASSERT(sizeof(CompressedTexImage2D) == 40,
1063 Sizeof_CompressedTexImage2D_is_not_40); 1063 Sizeof_CompressedTexImage2D_is_not_40);
1064 COMPILE_ASSERT(offsetof(CompressedTexImage2D, header) == 0, 1064 COMPILE_ASSERT(offsetof(CompressedTexImage2D, header) == 0,
1065 OffsetOf_CompressedTexImage2D_header_not_0); 1065 OffsetOf_CompressedTexImage2D_header_not_0);
1066 COMPILE_ASSERT(offsetof(CompressedTexImage2D, target) == 4, 1066 COMPILE_ASSERT(offsetof(CompressedTexImage2D, target) == 4,
1067 OffsetOf_CompressedTexImage2D_target_not_4); 1067 OffsetOf_CompressedTexImage2D_target_not_4);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
1117 uint32 total_size = 0; // TODO(gman): get correct size. 1117 uint32 total_size = 0; // TODO(gman): get correct size.
1118 static_cast<ValueType*>( 1118 static_cast<ValueType*>(
1119 cmd)->Init( 1119 cmd)->Init(
1120 _target, _level, _internalformat, _width, _height, _border, 1120 _target, _level, _internalformat, _width, _height, _border,
1121 _imageSize); 1121 _imageSize);
1122 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); 1122 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size);
1123 } 1123 }
1124 1124
1125 gpu::CommandHeader header; 1125 gpu::CommandHeader header;
1126 uint32 target; 1126 uint32 target;
1127 uint32 level; 1127 int32 level;
1128 uint32 internalformat; 1128 uint32 internalformat;
1129 uint32 width; 1129 int32 width;
1130 uint32 height; 1130 int32 height;
1131 uint32 border; 1131 int32 border;
1132 uint32 imageSize; 1132 int32 imageSize;
1133 }; 1133 };
1134 1134
1135 COMPILE_ASSERT(sizeof(CompressedTexImage2DImmediate) == 32, 1135 COMPILE_ASSERT(sizeof(CompressedTexImage2DImmediate) == 32,
1136 Sizeof_CompressedTexImage2DImmediate_is_not_32); 1136 Sizeof_CompressedTexImage2DImmediate_is_not_32);
1137 COMPILE_ASSERT(offsetof(CompressedTexImage2DImmediate, header) == 0, 1137 COMPILE_ASSERT(offsetof(CompressedTexImage2DImmediate, header) == 0,
1138 OffsetOf_CompressedTexImage2DImmediate_header_not_0); 1138 OffsetOf_CompressedTexImage2DImmediate_header_not_0);
1139 COMPILE_ASSERT(offsetof(CompressedTexImage2DImmediate, target) == 4, 1139 COMPILE_ASSERT(offsetof(CompressedTexImage2DImmediate, target) == 4,
1140 OffsetOf_CompressedTexImage2DImmediate_target_not_4); 1140 OffsetOf_CompressedTexImage2DImmediate_target_not_4);
1141 COMPILE_ASSERT(offsetof(CompressedTexImage2DImmediate, level) == 8, 1141 COMPILE_ASSERT(offsetof(CompressedTexImage2DImmediate, level) == 8,
1142 OffsetOf_CompressedTexImage2DImmediate_level_not_8); 1142 OffsetOf_CompressedTexImage2DImmediate_level_not_8);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 uint32 _data_shm_id, uint32 _data_shm_offset) { 1187 uint32 _data_shm_id, uint32 _data_shm_offset) {
1188 static_cast<ValueType*>( 1188 static_cast<ValueType*>(
1189 cmd)->Init( 1189 cmd)->Init(
1190 _target, _level, _xoffset, _yoffset, _width, _height, _format, 1190 _target, _level, _xoffset, _yoffset, _width, _height, _format,
1191 _imageSize, _data_shm_id, _data_shm_offset); 1191 _imageSize, _data_shm_id, _data_shm_offset);
1192 return NextCmdAddress<ValueType>(cmd); 1192 return NextCmdAddress<ValueType>(cmd);
1193 } 1193 }
1194 1194
1195 gpu::CommandHeader header; 1195 gpu::CommandHeader header;
1196 uint32 target; 1196 uint32 target;
1197 uint32 level; 1197 int32 level;
1198 uint32 xoffset; 1198 int32 xoffset;
1199 uint32 yoffset; 1199 int32 yoffset;
1200 uint32 width; 1200 int32 width;
1201 uint32 height; 1201 int32 height;
1202 uint32 format; 1202 uint32 format;
1203 uint32 imageSize; 1203 int32 imageSize;
1204 uint32 data_shm_id; 1204 uint32 data_shm_id;
1205 uint32 data_shm_offset; 1205 uint32 data_shm_offset;
1206 }; 1206 };
1207 1207
1208 COMPILE_ASSERT(sizeof(CompressedTexSubImage2D) == 44, 1208 COMPILE_ASSERT(sizeof(CompressedTexSubImage2D) == 44,
1209 Sizeof_CompressedTexSubImage2D_is_not_44); 1209 Sizeof_CompressedTexSubImage2D_is_not_44);
1210 COMPILE_ASSERT(offsetof(CompressedTexSubImage2D, header) == 0, 1210 COMPILE_ASSERT(offsetof(CompressedTexSubImage2D, header) == 0,
1211 OffsetOf_CompressedTexSubImage2D_header_not_0); 1211 OffsetOf_CompressedTexSubImage2D_header_not_0);
1212 COMPILE_ASSERT(offsetof(CompressedTexSubImage2D, target) == 4, 1212 COMPILE_ASSERT(offsetof(CompressedTexSubImage2D, target) == 4,
1213 OffsetOf_CompressedTexSubImage2D_target_not_4); 1213 OffsetOf_CompressedTexSubImage2D_target_not_4);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 uint32 total_size = ComputeSize(_imageSize); 1266 uint32 total_size = ComputeSize(_imageSize);
1267 static_cast<ValueType*>( 1267 static_cast<ValueType*>(
1268 cmd)->Init( 1268 cmd)->Init(
1269 _target, _level, _xoffset, _yoffset, _width, _height, _format, 1269 _target, _level, _xoffset, _yoffset, _width, _height, _format,
1270 _imageSize); 1270 _imageSize);
1271 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); 1271 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size);
1272 } 1272 }
1273 1273
1274 gpu::CommandHeader header; 1274 gpu::CommandHeader header;
1275 uint32 target; 1275 uint32 target;
1276 uint32 level; 1276 int32 level;
1277 uint32 xoffset; 1277 int32 xoffset;
1278 uint32 yoffset; 1278 int32 yoffset;
1279 uint32 width; 1279 int32 width;
1280 uint32 height; 1280 int32 height;
1281 uint32 format; 1281 uint32 format;
1282 uint32 imageSize; 1282 int32 imageSize;
1283 }; 1283 };
1284 1284
1285 COMPILE_ASSERT(sizeof(CompressedTexSubImage2DImmediate) == 36, 1285 COMPILE_ASSERT(sizeof(CompressedTexSubImage2DImmediate) == 36,
1286 Sizeof_CompressedTexSubImage2DImmediate_is_not_36); 1286 Sizeof_CompressedTexSubImage2DImmediate_is_not_36);
1287 COMPILE_ASSERT(offsetof(CompressedTexSubImage2DImmediate, header) == 0, 1287 COMPILE_ASSERT(offsetof(CompressedTexSubImage2DImmediate, header) == 0,
1288 OffsetOf_CompressedTexSubImage2DImmediate_header_not_0); 1288 OffsetOf_CompressedTexSubImage2DImmediate_header_not_0);
1289 COMPILE_ASSERT(offsetof(CompressedTexSubImage2DImmediate, target) == 4, 1289 COMPILE_ASSERT(offsetof(CompressedTexSubImage2DImmediate, target) == 4,
1290 OffsetOf_CompressedTexSubImage2DImmediate_target_not_4); 1290 OffsetOf_CompressedTexSubImage2DImmediate_target_not_4);
1291 COMPILE_ASSERT(offsetof(CompressedTexSubImage2DImmediate, level) == 8, 1291 COMPILE_ASSERT(offsetof(CompressedTexSubImage2DImmediate, level) == 8,
1292 OffsetOf_CompressedTexSubImage2DImmediate_level_not_8); 1292 OffsetOf_CompressedTexSubImage2DImmediate_level_not_8);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
1335 GLint _y, GLsizei _width, GLsizei _height, GLint _border) { 1335 GLint _y, GLsizei _width, GLsizei _height, GLint _border) {
1336 static_cast<ValueType*>( 1336 static_cast<ValueType*>(
1337 cmd)->Init( 1337 cmd)->Init(
1338 _target, _level, _internalformat, _x, _y, _width, _height, 1338 _target, _level, _internalformat, _x, _y, _width, _height,
1339 _border); 1339 _border);
1340 return NextCmdAddress<ValueType>(cmd); 1340 return NextCmdAddress<ValueType>(cmd);
1341 } 1341 }
1342 1342
1343 gpu::CommandHeader header; 1343 gpu::CommandHeader header;
1344 uint32 target; 1344 uint32 target;
1345 uint32 level; 1345 int32 level;
1346 uint32 internalformat; 1346 uint32 internalformat;
1347 uint32 x; 1347 int32 x;
1348 uint32 y; 1348 int32 y;
1349 uint32 width; 1349 int32 width;
1350 uint32 height; 1350 int32 height;
1351 uint32 border; 1351 int32 border;
1352 }; 1352 };
1353 1353
1354 COMPILE_ASSERT(sizeof(CopyTexImage2D) == 36, 1354 COMPILE_ASSERT(sizeof(CopyTexImage2D) == 36,
1355 Sizeof_CopyTexImage2D_is_not_36); 1355 Sizeof_CopyTexImage2D_is_not_36);
1356 COMPILE_ASSERT(offsetof(CopyTexImage2D, header) == 0, 1356 COMPILE_ASSERT(offsetof(CopyTexImage2D, header) == 0,
1357 OffsetOf_CopyTexImage2D_header_not_0); 1357 OffsetOf_CopyTexImage2D_header_not_0);
1358 COMPILE_ASSERT(offsetof(CopyTexImage2D, target) == 4, 1358 COMPILE_ASSERT(offsetof(CopyTexImage2D, target) == 4,
1359 OffsetOf_CopyTexImage2D_target_not_4); 1359 OffsetOf_CopyTexImage2D_target_not_4);
1360 COMPILE_ASSERT(offsetof(CopyTexImage2D, level) == 8, 1360 COMPILE_ASSERT(offsetof(CopyTexImage2D, level) == 8,
1361 OffsetOf_CopyTexImage2D_level_not_8); 1361 OffsetOf_CopyTexImage2D_level_not_8);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 void* cmd, GLenum _target, GLint _level, GLint _xoffset, GLint _yoffset, 1403 void* cmd, GLenum _target, GLint _level, GLint _xoffset, GLint _yoffset,
1404 GLint _x, GLint _y, GLsizei _width, GLsizei _height) { 1404 GLint _x, GLint _y, GLsizei _width, GLsizei _height) {
1405 static_cast<ValueType*>( 1405 static_cast<ValueType*>(
1406 cmd)->Init( 1406 cmd)->Init(
1407 _target, _level, _xoffset, _yoffset, _x, _y, _width, _height); 1407 _target, _level, _xoffset, _yoffset, _x, _y, _width, _height);
1408 return NextCmdAddress<ValueType>(cmd); 1408 return NextCmdAddress<ValueType>(cmd);
1409 } 1409 }
1410 1410
1411 gpu::CommandHeader header; 1411 gpu::CommandHeader header;
1412 uint32 target; 1412 uint32 target;
1413 uint32 level; 1413 int32 level;
1414 uint32 xoffset; 1414 int32 xoffset;
1415 uint32 yoffset; 1415 int32 yoffset;
1416 uint32 x; 1416 int32 x;
1417 uint32 y; 1417 int32 y;
1418 uint32 width; 1418 int32 width;
1419 uint32 height; 1419 int32 height;
1420 }; 1420 };
1421 1421
1422 COMPILE_ASSERT(sizeof(CopyTexSubImage2D) == 36, 1422 COMPILE_ASSERT(sizeof(CopyTexSubImage2D) == 36,
1423 Sizeof_CopyTexSubImage2D_is_not_36); 1423 Sizeof_CopyTexSubImage2D_is_not_36);
1424 COMPILE_ASSERT(offsetof(CopyTexSubImage2D, header) == 0, 1424 COMPILE_ASSERT(offsetof(CopyTexSubImage2D, header) == 0,
1425 OffsetOf_CopyTexSubImage2D_header_not_0); 1425 OffsetOf_CopyTexSubImage2D_header_not_0);
1426 COMPILE_ASSERT(offsetof(CopyTexSubImage2D, target) == 4, 1426 COMPILE_ASSERT(offsetof(CopyTexSubImage2D, target) == 4,
1427 OffsetOf_CopyTexSubImage2D_target_not_4); 1427 OffsetOf_CopyTexSubImage2D_target_not_4);
1428 COMPILE_ASSERT(offsetof(CopyTexSubImage2D, level) == 8, 1428 COMPILE_ASSERT(offsetof(CopyTexSubImage2D, level) == 8,
1429 OffsetOf_CopyTexSubImage2D_level_not_8); 1429 OffsetOf_CopyTexSubImage2D_level_not_8);
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1568 1568
1569 void* Set( 1569 void* Set(
1570 void* cmd, GLsizei _n, uint32 _buffers_shm_id, 1570 void* cmd, GLsizei _n, uint32 _buffers_shm_id,
1571 uint32 _buffers_shm_offset) { 1571 uint32 _buffers_shm_offset) {
1572 static_cast<ValueType*>( 1572 static_cast<ValueType*>(
1573 cmd)->Init(_n, _buffers_shm_id, _buffers_shm_offset); 1573 cmd)->Init(_n, _buffers_shm_id, _buffers_shm_offset);
1574 return NextCmdAddress<ValueType>(cmd); 1574 return NextCmdAddress<ValueType>(cmd);
1575 } 1575 }
1576 1576
1577 gpu::CommandHeader header; 1577 gpu::CommandHeader header;
1578 uint32 n; 1578 int32 n;
1579 uint32 buffers_shm_id; 1579 uint32 buffers_shm_id;
1580 uint32 buffers_shm_offset; 1580 uint32 buffers_shm_offset;
1581 }; 1581 };
1582 1582
1583 COMPILE_ASSERT(sizeof(DeleteBuffers) == 16, 1583 COMPILE_ASSERT(sizeof(DeleteBuffers) == 16,
1584 Sizeof_DeleteBuffers_is_not_16); 1584 Sizeof_DeleteBuffers_is_not_16);
1585 COMPILE_ASSERT(offsetof(DeleteBuffers, header) == 0, 1585 COMPILE_ASSERT(offsetof(DeleteBuffers, header) == 0,
1586 OffsetOf_DeleteBuffers_header_not_0); 1586 OffsetOf_DeleteBuffers_header_not_0);
1587 COMPILE_ASSERT(offsetof(DeleteBuffers, n) == 4, 1587 COMPILE_ASSERT(offsetof(DeleteBuffers, n) == 4,
1588 OffsetOf_DeleteBuffers_n_not_4); 1588 OffsetOf_DeleteBuffers_n_not_4);
(...skipping 27 matching lines...) Expand all
1616 _buffers, ComputeDataSize(_n)); 1616 _buffers, ComputeDataSize(_n));
1617 } 1617 }
1618 1618
1619 void* Set(void* cmd, GLsizei _n, const GLuint* _buffers) { 1619 void* Set(void* cmd, GLsizei _n, const GLuint* _buffers) {
1620 static_cast<ValueType*>(cmd)->Init(_n, _buffers); 1620 static_cast<ValueType*>(cmd)->Init(_n, _buffers);
1621 const uint32 size = ComputeSize(_n); 1621 const uint32 size = ComputeSize(_n);
1622 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); 1622 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
1623 } 1623 }
1624 1624
1625 gpu::CommandHeader header; 1625 gpu::CommandHeader header;
1626 uint32 n; 1626 int32 n;
1627 }; 1627 };
1628 1628
1629 COMPILE_ASSERT(sizeof(DeleteBuffersImmediate) == 8, 1629 COMPILE_ASSERT(sizeof(DeleteBuffersImmediate) == 8,
1630 Sizeof_DeleteBuffersImmediate_is_not_8); 1630 Sizeof_DeleteBuffersImmediate_is_not_8);
1631 COMPILE_ASSERT(offsetof(DeleteBuffersImmediate, header) == 0, 1631 COMPILE_ASSERT(offsetof(DeleteBuffersImmediate, header) == 0,
1632 OffsetOf_DeleteBuffersImmediate_header_not_0); 1632 OffsetOf_DeleteBuffersImmediate_header_not_0);
1633 COMPILE_ASSERT(offsetof(DeleteBuffersImmediate, n) == 4, 1633 COMPILE_ASSERT(offsetof(DeleteBuffersImmediate, n) == 4,
1634 OffsetOf_DeleteBuffersImmediate_n_not_4); 1634 OffsetOf_DeleteBuffersImmediate_n_not_4);
1635 1635
1636 struct DeleteFramebuffers { 1636 struct DeleteFramebuffers {
(...skipping 20 matching lines...) Expand all
1657 1657
1658 void* Set( 1658 void* Set(
1659 void* cmd, GLsizei _n, uint32 _framebuffers_shm_id, 1659 void* cmd, GLsizei _n, uint32 _framebuffers_shm_id,
1660 uint32 _framebuffers_shm_offset) { 1660 uint32 _framebuffers_shm_offset) {
1661 static_cast<ValueType*>( 1661 static_cast<ValueType*>(
1662 cmd)->Init(_n, _framebuffers_shm_id, _framebuffers_shm_offset); 1662 cmd)->Init(_n, _framebuffers_shm_id, _framebuffers_shm_offset);
1663 return NextCmdAddress<ValueType>(cmd); 1663 return NextCmdAddress<ValueType>(cmd);
1664 } 1664 }
1665 1665
1666 gpu::CommandHeader header; 1666 gpu::CommandHeader header;
1667 uint32 n; 1667 int32 n;
1668 uint32 framebuffers_shm_id; 1668 uint32 framebuffers_shm_id;
1669 uint32 framebuffers_shm_offset; 1669 uint32 framebuffers_shm_offset;
1670 }; 1670 };
1671 1671
1672 COMPILE_ASSERT(sizeof(DeleteFramebuffers) == 16, 1672 COMPILE_ASSERT(sizeof(DeleteFramebuffers) == 16,
1673 Sizeof_DeleteFramebuffers_is_not_16); 1673 Sizeof_DeleteFramebuffers_is_not_16);
1674 COMPILE_ASSERT(offsetof(DeleteFramebuffers, header) == 0, 1674 COMPILE_ASSERT(offsetof(DeleteFramebuffers, header) == 0,
1675 OffsetOf_DeleteFramebuffers_header_not_0); 1675 OffsetOf_DeleteFramebuffers_header_not_0);
1676 COMPILE_ASSERT(offsetof(DeleteFramebuffers, n) == 4, 1676 COMPILE_ASSERT(offsetof(DeleteFramebuffers, n) == 4,
1677 OffsetOf_DeleteFramebuffers_n_not_4); 1677 OffsetOf_DeleteFramebuffers_n_not_4);
(...skipping 27 matching lines...) Expand all
1705 _framebuffers, ComputeDataSize(_n)); 1705 _framebuffers, ComputeDataSize(_n));
1706 } 1706 }
1707 1707
1708 void* Set(void* cmd, GLsizei _n, const GLuint* _framebuffers) { 1708 void* Set(void* cmd, GLsizei _n, const GLuint* _framebuffers) {
1709 static_cast<ValueType*>(cmd)->Init(_n, _framebuffers); 1709 static_cast<ValueType*>(cmd)->Init(_n, _framebuffers);
1710 const uint32 size = ComputeSize(_n); 1710 const uint32 size = ComputeSize(_n);
1711 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); 1711 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
1712 } 1712 }
1713 1713
1714 gpu::CommandHeader header; 1714 gpu::CommandHeader header;
1715 uint32 n; 1715 int32 n;
1716 }; 1716 };
1717 1717
1718 COMPILE_ASSERT(sizeof(DeleteFramebuffersImmediate) == 8, 1718 COMPILE_ASSERT(sizeof(DeleteFramebuffersImmediate) == 8,
1719 Sizeof_DeleteFramebuffersImmediate_is_not_8); 1719 Sizeof_DeleteFramebuffersImmediate_is_not_8);
1720 COMPILE_ASSERT(offsetof(DeleteFramebuffersImmediate, header) == 0, 1720 COMPILE_ASSERT(offsetof(DeleteFramebuffersImmediate, header) == 0,
1721 OffsetOf_DeleteFramebuffersImmediate_header_not_0); 1721 OffsetOf_DeleteFramebuffersImmediate_header_not_0);
1722 COMPILE_ASSERT(offsetof(DeleteFramebuffersImmediate, n) == 4, 1722 COMPILE_ASSERT(offsetof(DeleteFramebuffersImmediate, n) == 4,
1723 OffsetOf_DeleteFramebuffersImmediate_n_not_4); 1723 OffsetOf_DeleteFramebuffersImmediate_n_not_4);
1724 1724
1725 struct DeleteProgram { 1725 struct DeleteProgram {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1780 1780
1781 void* Set( 1781 void* Set(
1782 void* cmd, GLsizei _n, uint32 _renderbuffers_shm_id, 1782 void* cmd, GLsizei _n, uint32 _renderbuffers_shm_id,
1783 uint32 _renderbuffers_shm_offset) { 1783 uint32 _renderbuffers_shm_offset) {
1784 static_cast<ValueType*>( 1784 static_cast<ValueType*>(
1785 cmd)->Init(_n, _renderbuffers_shm_id, _renderbuffers_shm_offset); 1785 cmd)->Init(_n, _renderbuffers_shm_id, _renderbuffers_shm_offset);
1786 return NextCmdAddress<ValueType>(cmd); 1786 return NextCmdAddress<ValueType>(cmd);
1787 } 1787 }
1788 1788
1789 gpu::CommandHeader header; 1789 gpu::CommandHeader header;
1790 uint32 n; 1790 int32 n;
1791 uint32 renderbuffers_shm_id; 1791 uint32 renderbuffers_shm_id;
1792 uint32 renderbuffers_shm_offset; 1792 uint32 renderbuffers_shm_offset;
1793 }; 1793 };
1794 1794
1795 COMPILE_ASSERT(sizeof(DeleteRenderbuffers) == 16, 1795 COMPILE_ASSERT(sizeof(DeleteRenderbuffers) == 16,
1796 Sizeof_DeleteRenderbuffers_is_not_16); 1796 Sizeof_DeleteRenderbuffers_is_not_16);
1797 COMPILE_ASSERT(offsetof(DeleteRenderbuffers, header) == 0, 1797 COMPILE_ASSERT(offsetof(DeleteRenderbuffers, header) == 0,
1798 OffsetOf_DeleteRenderbuffers_header_not_0); 1798 OffsetOf_DeleteRenderbuffers_header_not_0);
1799 COMPILE_ASSERT(offsetof(DeleteRenderbuffers, n) == 4, 1799 COMPILE_ASSERT(offsetof(DeleteRenderbuffers, n) == 4,
1800 OffsetOf_DeleteRenderbuffers_n_not_4); 1800 OffsetOf_DeleteRenderbuffers_n_not_4);
(...skipping 27 matching lines...) Expand all
1828 _renderbuffers, ComputeDataSize(_n)); 1828 _renderbuffers, ComputeDataSize(_n));
1829 } 1829 }
1830 1830
1831 void* Set(void* cmd, GLsizei _n, const GLuint* _renderbuffers) { 1831 void* Set(void* cmd, GLsizei _n, const GLuint* _renderbuffers) {
1832 static_cast<ValueType*>(cmd)->Init(_n, _renderbuffers); 1832 static_cast<ValueType*>(cmd)->Init(_n, _renderbuffers);
1833 const uint32 size = ComputeSize(_n); 1833 const uint32 size = ComputeSize(_n);
1834 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); 1834 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
1835 } 1835 }
1836 1836
1837 gpu::CommandHeader header; 1837 gpu::CommandHeader header;
1838 uint32 n; 1838 int32 n;
1839 }; 1839 };
1840 1840
1841 COMPILE_ASSERT(sizeof(DeleteRenderbuffersImmediate) == 8, 1841 COMPILE_ASSERT(sizeof(DeleteRenderbuffersImmediate) == 8,
1842 Sizeof_DeleteRenderbuffersImmediate_is_not_8); 1842 Sizeof_DeleteRenderbuffersImmediate_is_not_8);
1843 COMPILE_ASSERT(offsetof(DeleteRenderbuffersImmediate, header) == 0, 1843 COMPILE_ASSERT(offsetof(DeleteRenderbuffersImmediate, header) == 0,
1844 OffsetOf_DeleteRenderbuffersImmediate_header_not_0); 1844 OffsetOf_DeleteRenderbuffersImmediate_header_not_0);
1845 COMPILE_ASSERT(offsetof(DeleteRenderbuffersImmediate, n) == 4, 1845 COMPILE_ASSERT(offsetof(DeleteRenderbuffersImmediate, n) == 4,
1846 OffsetOf_DeleteRenderbuffersImmediate_n_not_4); 1846 OffsetOf_DeleteRenderbuffersImmediate_n_not_4);
1847 1847
1848 struct DeleteShader { 1848 struct DeleteShader {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
1901 1901
1902 void* Set( 1902 void* Set(
1903 void* cmd, GLsizei _n, uint32 _textures_shm_id, 1903 void* cmd, GLsizei _n, uint32 _textures_shm_id,
1904 uint32 _textures_shm_offset) { 1904 uint32 _textures_shm_offset) {
1905 static_cast<ValueType*>( 1905 static_cast<ValueType*>(
1906 cmd)->Init(_n, _textures_shm_id, _textures_shm_offset); 1906 cmd)->Init(_n, _textures_shm_id, _textures_shm_offset);
1907 return NextCmdAddress<ValueType>(cmd); 1907 return NextCmdAddress<ValueType>(cmd);
1908 } 1908 }
1909 1909
1910 gpu::CommandHeader header; 1910 gpu::CommandHeader header;
1911 uint32 n; 1911 int32 n;
1912 uint32 textures_shm_id; 1912 uint32 textures_shm_id;
1913 uint32 textures_shm_offset; 1913 uint32 textures_shm_offset;
1914 }; 1914 };
1915 1915
1916 COMPILE_ASSERT(sizeof(DeleteTextures) == 16, 1916 COMPILE_ASSERT(sizeof(DeleteTextures) == 16,
1917 Sizeof_DeleteTextures_is_not_16); 1917 Sizeof_DeleteTextures_is_not_16);
1918 COMPILE_ASSERT(offsetof(DeleteTextures, header) == 0, 1918 COMPILE_ASSERT(offsetof(DeleteTextures, header) == 0,
1919 OffsetOf_DeleteTextures_header_not_0); 1919 OffsetOf_DeleteTextures_header_not_0);
1920 COMPILE_ASSERT(offsetof(DeleteTextures, n) == 4, 1920 COMPILE_ASSERT(offsetof(DeleteTextures, n) == 4,
1921 OffsetOf_DeleteTextures_n_not_4); 1921 OffsetOf_DeleteTextures_n_not_4);
(...skipping 27 matching lines...) Expand all
1949 _textures, ComputeDataSize(_n)); 1949 _textures, ComputeDataSize(_n));
1950 } 1950 }
1951 1951
1952 void* Set(void* cmd, GLsizei _n, const GLuint* _textures) { 1952 void* Set(void* cmd, GLsizei _n, const GLuint* _textures) {
1953 static_cast<ValueType*>(cmd)->Init(_n, _textures); 1953 static_cast<ValueType*>(cmd)->Init(_n, _textures);
1954 const uint32 size = ComputeSize(_n); 1954 const uint32 size = ComputeSize(_n);
1955 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); 1955 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
1956 } 1956 }
1957 1957
1958 gpu::CommandHeader header; 1958 gpu::CommandHeader header;
1959 uint32 n; 1959 int32 n;
1960 }; 1960 };
1961 1961
1962 COMPILE_ASSERT(sizeof(DeleteTexturesImmediate) == 8, 1962 COMPILE_ASSERT(sizeof(DeleteTexturesImmediate) == 8,
1963 Sizeof_DeleteTexturesImmediate_is_not_8); 1963 Sizeof_DeleteTexturesImmediate_is_not_8);
1964 COMPILE_ASSERT(offsetof(DeleteTexturesImmediate, header) == 0, 1964 COMPILE_ASSERT(offsetof(DeleteTexturesImmediate, header) == 0,
1965 OffsetOf_DeleteTexturesImmediate_header_not_0); 1965 OffsetOf_DeleteTexturesImmediate_header_not_0);
1966 COMPILE_ASSERT(offsetof(DeleteTexturesImmediate, n) == 4, 1966 COMPILE_ASSERT(offsetof(DeleteTexturesImmediate, n) == 4,
1967 OffsetOf_DeleteTexturesImmediate_n_not_4); 1967 OffsetOf_DeleteTexturesImmediate_n_not_4);
1968 1968
1969 struct DepthFunc { 1969 struct DepthFunc {
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
2198 count = _count; 2198 count = _count;
2199 } 2199 }
2200 2200
2201 void* Set(void* cmd, GLenum _mode, GLint _first, GLsizei _count) { 2201 void* Set(void* cmd, GLenum _mode, GLint _first, GLsizei _count) {
2202 static_cast<ValueType*>(cmd)->Init(_mode, _first, _count); 2202 static_cast<ValueType*>(cmd)->Init(_mode, _first, _count);
2203 return NextCmdAddress<ValueType>(cmd); 2203 return NextCmdAddress<ValueType>(cmd);
2204 } 2204 }
2205 2205
2206 gpu::CommandHeader header; 2206 gpu::CommandHeader header;
2207 uint32 mode; 2207 uint32 mode;
2208 uint32 first; 2208 int32 first;
2209 uint32 count; 2209 int32 count;
2210 }; 2210 };
2211 2211
2212 COMPILE_ASSERT(sizeof(DrawArrays) == 16, 2212 COMPILE_ASSERT(sizeof(DrawArrays) == 16,
2213 Sizeof_DrawArrays_is_not_16); 2213 Sizeof_DrawArrays_is_not_16);
2214 COMPILE_ASSERT(offsetof(DrawArrays, header) == 0, 2214 COMPILE_ASSERT(offsetof(DrawArrays, header) == 0,
2215 OffsetOf_DrawArrays_header_not_0); 2215 OffsetOf_DrawArrays_header_not_0);
2216 COMPILE_ASSERT(offsetof(DrawArrays, mode) == 4, 2216 COMPILE_ASSERT(offsetof(DrawArrays, mode) == 4,
2217 OffsetOf_DrawArrays_mode_not_4); 2217 OffsetOf_DrawArrays_mode_not_4);
2218 COMPILE_ASSERT(offsetof(DrawArrays, first) == 8, 2218 COMPILE_ASSERT(offsetof(DrawArrays, first) == 8,
2219 OffsetOf_DrawArrays_first_not_8); 2219 OffsetOf_DrawArrays_first_not_8);
(...skipping 23 matching lines...) Expand all
2243 2243
2244 void* Set( 2244 void* Set(
2245 void* cmd, GLenum _mode, GLsizei _count, GLenum _type, 2245 void* cmd, GLenum _mode, GLsizei _count, GLenum _type,
2246 GLuint _index_offset) { 2246 GLuint _index_offset) {
2247 static_cast<ValueType*>(cmd)->Init(_mode, _count, _type, _index_offset); 2247 static_cast<ValueType*>(cmd)->Init(_mode, _count, _type, _index_offset);
2248 return NextCmdAddress<ValueType>(cmd); 2248 return NextCmdAddress<ValueType>(cmd);
2249 } 2249 }
2250 2250
2251 gpu::CommandHeader header; 2251 gpu::CommandHeader header;
2252 uint32 mode; 2252 uint32 mode;
2253 uint32 count; 2253 int32 count;
2254 uint32 type; 2254 uint32 type;
2255 uint32 index_offset; 2255 uint32 index_offset;
2256 }; 2256 };
2257 2257
2258 COMPILE_ASSERT(sizeof(DrawElements) == 20, 2258 COMPILE_ASSERT(sizeof(DrawElements) == 20,
2259 Sizeof_DrawElements_is_not_20); 2259 Sizeof_DrawElements_is_not_20);
2260 COMPILE_ASSERT(offsetof(DrawElements, header) == 0, 2260 COMPILE_ASSERT(offsetof(DrawElements, header) == 0,
2261 OffsetOf_DrawElements_header_not_0); 2261 OffsetOf_DrawElements_header_not_0);
2262 COMPILE_ASSERT(offsetof(DrawElements, mode) == 4, 2262 COMPILE_ASSERT(offsetof(DrawElements, mode) == 4,
2263 OffsetOf_DrawElements_mode_not_4); 2263 OffsetOf_DrawElements_mode_not_4);
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
2477 static_cast<ValueType*>( 2477 static_cast<ValueType*>(
2478 cmd)->Init(_target, _attachment, _textarget, _texture, _level); 2478 cmd)->Init(_target, _attachment, _textarget, _texture, _level);
2479 return NextCmdAddress<ValueType>(cmd); 2479 return NextCmdAddress<ValueType>(cmd);
2480 } 2480 }
2481 2481
2482 gpu::CommandHeader header; 2482 gpu::CommandHeader header;
2483 uint32 target; 2483 uint32 target;
2484 uint32 attachment; 2484 uint32 attachment;
2485 uint32 textarget; 2485 uint32 textarget;
2486 uint32 texture; 2486 uint32 texture;
2487 uint32 level; 2487 int32 level;
2488 }; 2488 };
2489 2489
2490 COMPILE_ASSERT(sizeof(FramebufferTexture2D) == 24, 2490 COMPILE_ASSERT(sizeof(FramebufferTexture2D) == 24,
2491 Sizeof_FramebufferTexture2D_is_not_24); 2491 Sizeof_FramebufferTexture2D_is_not_24);
2492 COMPILE_ASSERT(offsetof(FramebufferTexture2D, header) == 0, 2492 COMPILE_ASSERT(offsetof(FramebufferTexture2D, header) == 0,
2493 OffsetOf_FramebufferTexture2D_header_not_0); 2493 OffsetOf_FramebufferTexture2D_header_not_0);
2494 COMPILE_ASSERT(offsetof(FramebufferTexture2D, target) == 4, 2494 COMPILE_ASSERT(offsetof(FramebufferTexture2D, target) == 4,
2495 OffsetOf_FramebufferTexture2D_target_not_4); 2495 OffsetOf_FramebufferTexture2D_target_not_4);
2496 COMPILE_ASSERT(offsetof(FramebufferTexture2D, attachment) == 8, 2496 COMPILE_ASSERT(offsetof(FramebufferTexture2D, attachment) == 8,
2497 OffsetOf_FramebufferTexture2D_attachment_not_8); 2497 OffsetOf_FramebufferTexture2D_attachment_not_8);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
2558 2558
2559 void* Set( 2559 void* Set(
2560 void* cmd, GLsizei _n, uint32 _buffers_shm_id, 2560 void* cmd, GLsizei _n, uint32 _buffers_shm_id,
2561 uint32 _buffers_shm_offset) { 2561 uint32 _buffers_shm_offset) {
2562 static_cast<ValueType*>( 2562 static_cast<ValueType*>(
2563 cmd)->Init(_n, _buffers_shm_id, _buffers_shm_offset); 2563 cmd)->Init(_n, _buffers_shm_id, _buffers_shm_offset);
2564 return NextCmdAddress<ValueType>(cmd); 2564 return NextCmdAddress<ValueType>(cmd);
2565 } 2565 }
2566 2566
2567 gpu::CommandHeader header; 2567 gpu::CommandHeader header;
2568 uint32 n; 2568 int32 n;
2569 uint32 buffers_shm_id; 2569 uint32 buffers_shm_id;
2570 uint32 buffers_shm_offset; 2570 uint32 buffers_shm_offset;
2571 }; 2571 };
2572 2572
2573 COMPILE_ASSERT(sizeof(GenBuffers) == 16, 2573 COMPILE_ASSERT(sizeof(GenBuffers) == 16,
2574 Sizeof_GenBuffers_is_not_16); 2574 Sizeof_GenBuffers_is_not_16);
2575 COMPILE_ASSERT(offsetof(GenBuffers, header) == 0, 2575 COMPILE_ASSERT(offsetof(GenBuffers, header) == 0,
2576 OffsetOf_GenBuffers_header_not_0); 2576 OffsetOf_GenBuffers_header_not_0);
2577 COMPILE_ASSERT(offsetof(GenBuffers, n) == 4, 2577 COMPILE_ASSERT(offsetof(GenBuffers, n) == 4,
2578 OffsetOf_GenBuffers_n_not_4); 2578 OffsetOf_GenBuffers_n_not_4);
(...skipping 27 matching lines...) Expand all
2606 _buffers, ComputeDataSize(_n)); 2606 _buffers, ComputeDataSize(_n));
2607 } 2607 }
2608 2608
2609 void* Set(void* cmd, GLsizei _n, GLuint* _buffers) { 2609 void* Set(void* cmd, GLsizei _n, GLuint* _buffers) {
2610 static_cast<ValueType*>(cmd)->Init(_n, _buffers); 2610 static_cast<ValueType*>(cmd)->Init(_n, _buffers);
2611 const uint32 size = ComputeSize(_n); 2611 const uint32 size = ComputeSize(_n);
2612 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); 2612 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
2613 } 2613 }
2614 2614
2615 gpu::CommandHeader header; 2615 gpu::CommandHeader header;
2616 uint32 n; 2616 int32 n;
2617 }; 2617 };
2618 2618
2619 COMPILE_ASSERT(sizeof(GenBuffersImmediate) == 8, 2619 COMPILE_ASSERT(sizeof(GenBuffersImmediate) == 8,
2620 Sizeof_GenBuffersImmediate_is_not_8); 2620 Sizeof_GenBuffersImmediate_is_not_8);
2621 COMPILE_ASSERT(offsetof(GenBuffersImmediate, header) == 0, 2621 COMPILE_ASSERT(offsetof(GenBuffersImmediate, header) == 0,
2622 OffsetOf_GenBuffersImmediate_header_not_0); 2622 OffsetOf_GenBuffersImmediate_header_not_0);
2623 COMPILE_ASSERT(offsetof(GenBuffersImmediate, n) == 4, 2623 COMPILE_ASSERT(offsetof(GenBuffersImmediate, n) == 4,
2624 OffsetOf_GenBuffersImmediate_n_not_4); 2624 OffsetOf_GenBuffersImmediate_n_not_4);
2625 2625
2626 struct GenerateMipmap { 2626 struct GenerateMipmap {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
2681 2681
2682 void* Set( 2682 void* Set(
2683 void* cmd, GLsizei _n, uint32 _framebuffers_shm_id, 2683 void* cmd, GLsizei _n, uint32 _framebuffers_shm_id,
2684 uint32 _framebuffers_shm_offset) { 2684 uint32 _framebuffers_shm_offset) {
2685 static_cast<ValueType*>( 2685 static_cast<ValueType*>(
2686 cmd)->Init(_n, _framebuffers_shm_id, _framebuffers_shm_offset); 2686 cmd)->Init(_n, _framebuffers_shm_id, _framebuffers_shm_offset);
2687 return NextCmdAddress<ValueType>(cmd); 2687 return NextCmdAddress<ValueType>(cmd);
2688 } 2688 }
2689 2689
2690 gpu::CommandHeader header; 2690 gpu::CommandHeader header;
2691 uint32 n; 2691 int32 n;
2692 uint32 framebuffers_shm_id; 2692 uint32 framebuffers_shm_id;
2693 uint32 framebuffers_shm_offset; 2693 uint32 framebuffers_shm_offset;
2694 }; 2694 };
2695 2695
2696 COMPILE_ASSERT(sizeof(GenFramebuffers) == 16, 2696 COMPILE_ASSERT(sizeof(GenFramebuffers) == 16,
2697 Sizeof_GenFramebuffers_is_not_16); 2697 Sizeof_GenFramebuffers_is_not_16);
2698 COMPILE_ASSERT(offsetof(GenFramebuffers, header) == 0, 2698 COMPILE_ASSERT(offsetof(GenFramebuffers, header) == 0,
2699 OffsetOf_GenFramebuffers_header_not_0); 2699 OffsetOf_GenFramebuffers_header_not_0);
2700 COMPILE_ASSERT(offsetof(GenFramebuffers, n) == 4, 2700 COMPILE_ASSERT(offsetof(GenFramebuffers, n) == 4,
2701 OffsetOf_GenFramebuffers_n_not_4); 2701 OffsetOf_GenFramebuffers_n_not_4);
(...skipping 27 matching lines...) Expand all
2729 _framebuffers, ComputeDataSize(_n)); 2729 _framebuffers, ComputeDataSize(_n));
2730 } 2730 }
2731 2731
2732 void* Set(void* cmd, GLsizei _n, GLuint* _framebuffers) { 2732 void* Set(void* cmd, GLsizei _n, GLuint* _framebuffers) {
2733 static_cast<ValueType*>(cmd)->Init(_n, _framebuffers); 2733 static_cast<ValueType*>(cmd)->Init(_n, _framebuffers);
2734 const uint32 size = ComputeSize(_n); 2734 const uint32 size = ComputeSize(_n);
2735 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); 2735 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
2736 } 2736 }
2737 2737
2738 gpu::CommandHeader header; 2738 gpu::CommandHeader header;
2739 uint32 n; 2739 int32 n;
2740 }; 2740 };
2741 2741
2742 COMPILE_ASSERT(sizeof(GenFramebuffersImmediate) == 8, 2742 COMPILE_ASSERT(sizeof(GenFramebuffersImmediate) == 8,
2743 Sizeof_GenFramebuffersImmediate_is_not_8); 2743 Sizeof_GenFramebuffersImmediate_is_not_8);
2744 COMPILE_ASSERT(offsetof(GenFramebuffersImmediate, header) == 0, 2744 COMPILE_ASSERT(offsetof(GenFramebuffersImmediate, header) == 0,
2745 OffsetOf_GenFramebuffersImmediate_header_not_0); 2745 OffsetOf_GenFramebuffersImmediate_header_not_0);
2746 COMPILE_ASSERT(offsetof(GenFramebuffersImmediate, n) == 4, 2746 COMPILE_ASSERT(offsetof(GenFramebuffersImmediate, n) == 4,
2747 OffsetOf_GenFramebuffersImmediate_n_not_4); 2747 OffsetOf_GenFramebuffersImmediate_n_not_4);
2748 2748
2749 struct GenRenderbuffers { 2749 struct GenRenderbuffers {
(...skipping 20 matching lines...) Expand all
2770 2770
2771 void* Set( 2771 void* Set(
2772 void* cmd, GLsizei _n, uint32 _renderbuffers_shm_id, 2772 void* cmd, GLsizei _n, uint32 _renderbuffers_shm_id,
2773 uint32 _renderbuffers_shm_offset) { 2773 uint32 _renderbuffers_shm_offset) {
2774 static_cast<ValueType*>( 2774 static_cast<ValueType*>(
2775 cmd)->Init(_n, _renderbuffers_shm_id, _renderbuffers_shm_offset); 2775 cmd)->Init(_n, _renderbuffers_shm_id, _renderbuffers_shm_offset);
2776 return NextCmdAddress<ValueType>(cmd); 2776 return NextCmdAddress<ValueType>(cmd);
2777 } 2777 }
2778 2778
2779 gpu::CommandHeader header; 2779 gpu::CommandHeader header;
2780 uint32 n; 2780 int32 n;
2781 uint32 renderbuffers_shm_id; 2781 uint32 renderbuffers_shm_id;
2782 uint32 renderbuffers_shm_offset; 2782 uint32 renderbuffers_shm_offset;
2783 }; 2783 };
2784 2784
2785 COMPILE_ASSERT(sizeof(GenRenderbuffers) == 16, 2785 COMPILE_ASSERT(sizeof(GenRenderbuffers) == 16,
2786 Sizeof_GenRenderbuffers_is_not_16); 2786 Sizeof_GenRenderbuffers_is_not_16);
2787 COMPILE_ASSERT(offsetof(GenRenderbuffers, header) == 0, 2787 COMPILE_ASSERT(offsetof(GenRenderbuffers, header) == 0,
2788 OffsetOf_GenRenderbuffers_header_not_0); 2788 OffsetOf_GenRenderbuffers_header_not_0);
2789 COMPILE_ASSERT(offsetof(GenRenderbuffers, n) == 4, 2789 COMPILE_ASSERT(offsetof(GenRenderbuffers, n) == 4,
2790 OffsetOf_GenRenderbuffers_n_not_4); 2790 OffsetOf_GenRenderbuffers_n_not_4);
(...skipping 27 matching lines...) Expand all
2818 _renderbuffers, ComputeDataSize(_n)); 2818 _renderbuffers, ComputeDataSize(_n));
2819 } 2819 }
2820 2820
2821 void* Set(void* cmd, GLsizei _n, GLuint* _renderbuffers) { 2821 void* Set(void* cmd, GLsizei _n, GLuint* _renderbuffers) {
2822 static_cast<ValueType*>(cmd)->Init(_n, _renderbuffers); 2822 static_cast<ValueType*>(cmd)->Init(_n, _renderbuffers);
2823 const uint32 size = ComputeSize(_n); 2823 const uint32 size = ComputeSize(_n);
2824 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); 2824 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
2825 } 2825 }
2826 2826
2827 gpu::CommandHeader header; 2827 gpu::CommandHeader header;
2828 uint32 n; 2828 int32 n;
2829 }; 2829 };
2830 2830
2831 COMPILE_ASSERT(sizeof(GenRenderbuffersImmediate) == 8, 2831 COMPILE_ASSERT(sizeof(GenRenderbuffersImmediate) == 8,
2832 Sizeof_GenRenderbuffersImmediate_is_not_8); 2832 Sizeof_GenRenderbuffersImmediate_is_not_8);
2833 COMPILE_ASSERT(offsetof(GenRenderbuffersImmediate, header) == 0, 2833 COMPILE_ASSERT(offsetof(GenRenderbuffersImmediate, header) == 0,
2834 OffsetOf_GenRenderbuffersImmediate_header_not_0); 2834 OffsetOf_GenRenderbuffersImmediate_header_not_0);
2835 COMPILE_ASSERT(offsetof(GenRenderbuffersImmediate, n) == 4, 2835 COMPILE_ASSERT(offsetof(GenRenderbuffersImmediate, n) == 4,
2836 OffsetOf_GenRenderbuffersImmediate_n_not_4); 2836 OffsetOf_GenRenderbuffersImmediate_n_not_4);
2837 2837
2838 struct GenTextures { 2838 struct GenTextures {
(...skipping 18 matching lines...) Expand all
2857 2857
2858 void* Set( 2858 void* Set(
2859 void* cmd, GLsizei _n, uint32 _textures_shm_id, 2859 void* cmd, GLsizei _n, uint32 _textures_shm_id,
2860 uint32 _textures_shm_offset) { 2860 uint32 _textures_shm_offset) {
2861 static_cast<ValueType*>( 2861 static_cast<ValueType*>(
2862 cmd)->Init(_n, _textures_shm_id, _textures_shm_offset); 2862 cmd)->Init(_n, _textures_shm_id, _textures_shm_offset);
2863 return NextCmdAddress<ValueType>(cmd); 2863 return NextCmdAddress<ValueType>(cmd);
2864 } 2864 }
2865 2865
2866 gpu::CommandHeader header; 2866 gpu::CommandHeader header;
2867 uint32 n; 2867 int32 n;
2868 uint32 textures_shm_id; 2868 uint32 textures_shm_id;
2869 uint32 textures_shm_offset; 2869 uint32 textures_shm_offset;
2870 }; 2870 };
2871 2871
2872 COMPILE_ASSERT(sizeof(GenTextures) == 16, 2872 COMPILE_ASSERT(sizeof(GenTextures) == 16,
2873 Sizeof_GenTextures_is_not_16); 2873 Sizeof_GenTextures_is_not_16);
2874 COMPILE_ASSERT(offsetof(GenTextures, header) == 0, 2874 COMPILE_ASSERT(offsetof(GenTextures, header) == 0,
2875 OffsetOf_GenTextures_header_not_0); 2875 OffsetOf_GenTextures_header_not_0);
2876 COMPILE_ASSERT(offsetof(GenTextures, n) == 4, 2876 COMPILE_ASSERT(offsetof(GenTextures, n) == 4,
2877 OffsetOf_GenTextures_n_not_4); 2877 OffsetOf_GenTextures_n_not_4);
(...skipping 27 matching lines...) Expand all
2905 _textures, ComputeDataSize(_n)); 2905 _textures, ComputeDataSize(_n));
2906 } 2906 }
2907 2907
2908 void* Set(void* cmd, GLsizei _n, GLuint* _textures) { 2908 void* Set(void* cmd, GLsizei _n, GLuint* _textures) {
2909 static_cast<ValueType*>(cmd)->Init(_n, _textures); 2909 static_cast<ValueType*>(cmd)->Init(_n, _textures);
2910 const uint32 size = ComputeSize(_n); 2910 const uint32 size = ComputeSize(_n);
2911 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); 2911 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
2912 } 2912 }
2913 2913
2914 gpu::CommandHeader header; 2914 gpu::CommandHeader header;
2915 uint32 n; 2915 int32 n;
2916 }; 2916 };
2917 2917
2918 COMPILE_ASSERT(sizeof(GenTexturesImmediate) == 8, 2918 COMPILE_ASSERT(sizeof(GenTexturesImmediate) == 8,
2919 Sizeof_GenTexturesImmediate_is_not_8); 2919 Sizeof_GenTexturesImmediate_is_not_8);
2920 COMPILE_ASSERT(offsetof(GenTexturesImmediate, header) == 0, 2920 COMPILE_ASSERT(offsetof(GenTexturesImmediate, header) == 0,
2921 OffsetOf_GenTexturesImmediate_header_not_0); 2921 OffsetOf_GenTexturesImmediate_header_not_0);
2922 COMPILE_ASSERT(offsetof(GenTexturesImmediate, n) == 4, 2922 COMPILE_ASSERT(offsetof(GenTexturesImmediate, n) == 4,
2923 OffsetOf_GenTexturesImmediate_n_not_4); 2923 OffsetOf_GenTexturesImmediate_n_not_4);
2924 2924
2925 struct GetActiveAttrib { 2925 struct GetActiveAttrib {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
2963 cmd)->Init( 2963 cmd)->Init(
2964 _program, _index, _bufsize, _length_shm_id, _length_shm_offset, 2964 _program, _index, _bufsize, _length_shm_id, _length_shm_offset,
2965 _size_shm_id, _size_shm_offset, _type_shm_id, _type_shm_offset, 2965 _size_shm_id, _size_shm_offset, _type_shm_id, _type_shm_offset,
2966 _name_shm_id, _name_shm_offset); 2966 _name_shm_id, _name_shm_offset);
2967 return NextCmdAddress<ValueType>(cmd); 2967 return NextCmdAddress<ValueType>(cmd);
2968 } 2968 }
2969 2969
2970 gpu::CommandHeader header; 2970 gpu::CommandHeader header;
2971 uint32 program; 2971 uint32 program;
2972 uint32 index; 2972 uint32 index;
2973 uint32 bufsize; 2973 int32 bufsize;
2974 uint32 length_shm_id; 2974 uint32 length_shm_id;
2975 uint32 length_shm_offset; 2975 uint32 length_shm_offset;
2976 uint32 size_shm_id; 2976 uint32 size_shm_id;
2977 uint32 size_shm_offset; 2977 uint32 size_shm_offset;
2978 uint32 type_shm_id; 2978 uint32 type_shm_id;
2979 uint32 type_shm_offset; 2979 uint32 type_shm_offset;
2980 uint32 name_shm_id; 2980 uint32 name_shm_id;
2981 uint32 name_shm_offset; 2981 uint32 name_shm_offset;
2982 }; 2982 };
2983 2983
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
3049 cmd)->Init( 3049 cmd)->Init(
3050 _program, _index, _bufsize, _length_shm_id, _length_shm_offset, 3050 _program, _index, _bufsize, _length_shm_id, _length_shm_offset,
3051 _size_shm_id, _size_shm_offset, _type_shm_id, _type_shm_offset, 3051 _size_shm_id, _size_shm_offset, _type_shm_id, _type_shm_offset,
3052 _name_shm_id, _name_shm_offset); 3052 _name_shm_id, _name_shm_offset);
3053 return NextCmdAddress<ValueType>(cmd); 3053 return NextCmdAddress<ValueType>(cmd);
3054 } 3054 }
3055 3055
3056 gpu::CommandHeader header; 3056 gpu::CommandHeader header;
3057 uint32 program; 3057 uint32 program;
3058 uint32 index; 3058 uint32 index;
3059 uint32 bufsize; 3059 int32 bufsize;
3060 uint32 length_shm_id; 3060 uint32 length_shm_id;
3061 uint32 length_shm_offset; 3061 uint32 length_shm_offset;
3062 uint32 size_shm_id; 3062 uint32 size_shm_id;
3063 uint32 size_shm_offset; 3063 uint32 size_shm_offset;
3064 uint32 type_shm_id; 3064 uint32 type_shm_id;
3065 uint32 type_shm_offset; 3065 uint32 type_shm_offset;
3066 uint32 name_shm_id; 3066 uint32 name_shm_id;
3067 uint32 name_shm_offset; 3067 uint32 name_shm_offset;
3068 }; 3068 };
3069 3069
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
3126 uint32 _shaders_shm_offset) { 3126 uint32 _shaders_shm_offset) {
3127 static_cast<ValueType*>( 3127 static_cast<ValueType*>(
3128 cmd)->Init( 3128 cmd)->Init(
3129 _program, _maxcount, _count_shm_id, _count_shm_offset, 3129 _program, _maxcount, _count_shm_id, _count_shm_offset,
3130 _shaders_shm_id, _shaders_shm_offset); 3130 _shaders_shm_id, _shaders_shm_offset);
3131 return NextCmdAddress<ValueType>(cmd); 3131 return NextCmdAddress<ValueType>(cmd);
3132 } 3132 }
3133 3133
3134 gpu::CommandHeader header; 3134 gpu::CommandHeader header;
3135 uint32 program; 3135 uint32 program;
3136 uint32 maxcount; 3136 int32 maxcount;
3137 uint32 count_shm_id; 3137 uint32 count_shm_id;
3138 uint32 count_shm_offset; 3138 uint32 count_shm_offset;
3139 uint32 shaders_shm_id; 3139 uint32 shaders_shm_id;
3140 uint32 shaders_shm_offset; 3140 uint32 shaders_shm_offset;
3141 }; 3141 };
3142 3142
3143 COMPILE_ASSERT(sizeof(GetAttachedShaders) == 28, 3143 COMPILE_ASSERT(sizeof(GetAttachedShaders) == 28,
3144 Sizeof_GetAttachedShaders_is_not_28); 3144 Sizeof_GetAttachedShaders_is_not_28);
3145 COMPILE_ASSERT(offsetof(GetAttachedShaders, header) == 0, 3145 COMPILE_ASSERT(offsetof(GetAttachedShaders, header) == 0,
3146 OffsetOf_GetAttachedShaders_header_not_0); 3146 OffsetOf_GetAttachedShaders_header_not_0);
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
3522 uint32 _infolog_shm_offset) { 3522 uint32 _infolog_shm_offset) {
3523 static_cast<ValueType*>( 3523 static_cast<ValueType*>(
3524 cmd)->Init( 3524 cmd)->Init(
3525 _program, _bufsize, _length_shm_id, _length_shm_offset, 3525 _program, _bufsize, _length_shm_id, _length_shm_offset,
3526 _infolog_shm_id, _infolog_shm_offset); 3526 _infolog_shm_id, _infolog_shm_offset);
3527 return NextCmdAddress<ValueType>(cmd); 3527 return NextCmdAddress<ValueType>(cmd);
3528 } 3528 }
3529 3529
3530 gpu::CommandHeader header; 3530 gpu::CommandHeader header;
3531 uint32 program; 3531 uint32 program;
3532 uint32 bufsize; 3532 int32 bufsize;
3533 uint32 length_shm_id; 3533 uint32 length_shm_id;
3534 uint32 length_shm_offset; 3534 uint32 length_shm_offset;
3535 uint32 infolog_shm_id; 3535 uint32 infolog_shm_id;
3536 uint32 infolog_shm_offset; 3536 uint32 infolog_shm_offset;
3537 }; 3537 };
3538 3538
3539 COMPILE_ASSERT(sizeof(GetProgramInfoLog) == 28, 3539 COMPILE_ASSERT(sizeof(GetProgramInfoLog) == 28,
3540 Sizeof_GetProgramInfoLog_is_not_28); 3540 Sizeof_GetProgramInfoLog_is_not_28);
3541 COMPILE_ASSERT(offsetof(GetProgramInfoLog, header) == 0, 3541 COMPILE_ASSERT(offsetof(GetProgramInfoLog, header) == 0,
3542 OffsetOf_GetProgramInfoLog_header_not_0); 3542 OffsetOf_GetProgramInfoLog_header_not_0);
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
3687 uint32 _infolog_shm_offset) { 3687 uint32 _infolog_shm_offset) {
3688 static_cast<ValueType*>( 3688 static_cast<ValueType*>(
3689 cmd)->Init( 3689 cmd)->Init(
3690 _shader, _bufsize, _length_shm_id, _length_shm_offset, 3690 _shader, _bufsize, _length_shm_id, _length_shm_offset,
3691 _infolog_shm_id, _infolog_shm_offset); 3691 _infolog_shm_id, _infolog_shm_offset);
3692 return NextCmdAddress<ValueType>(cmd); 3692 return NextCmdAddress<ValueType>(cmd);
3693 } 3693 }
3694 3694
3695 gpu::CommandHeader header; 3695 gpu::CommandHeader header;
3696 uint32 shader; 3696 uint32 shader;
3697 uint32 bufsize; 3697 int32 bufsize;
3698 uint32 length_shm_id; 3698 uint32 length_shm_id;
3699 uint32 length_shm_offset; 3699 uint32 length_shm_offset;
3700 uint32 infolog_shm_id; 3700 uint32 infolog_shm_id;
3701 uint32 infolog_shm_offset; 3701 uint32 infolog_shm_offset;
3702 }; 3702 };
3703 3703
3704 COMPILE_ASSERT(sizeof(GetShaderInfoLog) == 28, 3704 COMPILE_ASSERT(sizeof(GetShaderInfoLog) == 28,
3705 Sizeof_GetShaderInfoLog_is_not_28); 3705 Sizeof_GetShaderInfoLog_is_not_28);
3706 COMPILE_ASSERT(offsetof(GetShaderInfoLog, header) == 0, 3706 COMPILE_ASSERT(offsetof(GetShaderInfoLog, header) == 0,
3707 OffsetOf_GetShaderInfoLog_header_not_0); 3707 OffsetOf_GetShaderInfoLog_header_not_0);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
3813 uint32 _source_shm_offset) { 3813 uint32 _source_shm_offset) {
3814 static_cast<ValueType*>( 3814 static_cast<ValueType*>(
3815 cmd)->Init( 3815 cmd)->Init(
3816 _shader, _bufsize, _length_shm_id, _length_shm_offset, 3816 _shader, _bufsize, _length_shm_id, _length_shm_offset,
3817 _source_shm_id, _source_shm_offset); 3817 _source_shm_id, _source_shm_offset);
3818 return NextCmdAddress<ValueType>(cmd); 3818 return NextCmdAddress<ValueType>(cmd);
3819 } 3819 }
3820 3820
3821 gpu::CommandHeader header; 3821 gpu::CommandHeader header;
3822 uint32 shader; 3822 uint32 shader;
3823 uint32 bufsize; 3823 int32 bufsize;
3824 uint32 length_shm_id; 3824 uint32 length_shm_id;
3825 uint32 length_shm_offset; 3825 uint32 length_shm_offset;
3826 uint32 source_shm_id; 3826 uint32 source_shm_id;
3827 uint32 source_shm_offset; 3827 uint32 source_shm_offset;
3828 }; 3828 };
3829 3829
3830 COMPILE_ASSERT(sizeof(GetShaderSource) == 28, 3830 COMPILE_ASSERT(sizeof(GetShaderSource) == 28,
3831 Sizeof_GetShaderSource_is_not_28); 3831 Sizeof_GetShaderSource_is_not_28);
3832 COMPILE_ASSERT(offsetof(GetShaderSource, header) == 0, 3832 COMPILE_ASSERT(offsetof(GetShaderSource, header) == 0,
3833 OffsetOf_GetShaderSource_header_not_0); 3833 OffsetOf_GetShaderSource_header_not_0);
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
4006 void* Set( 4006 void* Set(
4007 void* cmd, GLuint _program, GLint _location, uint32 _params_shm_id, 4007 void* cmd, GLuint _program, GLint _location, uint32 _params_shm_id,
4008 uint32 _params_shm_offset) { 4008 uint32 _params_shm_offset) {
4009 static_cast<ValueType*>( 4009 static_cast<ValueType*>(
4010 cmd)->Init(_program, _location, _params_shm_id, _params_shm_offset); 4010 cmd)->Init(_program, _location, _params_shm_id, _params_shm_offset);
4011 return NextCmdAddress<ValueType>(cmd); 4011 return NextCmdAddress<ValueType>(cmd);
4012 } 4012 }
4013 4013
4014 gpu::CommandHeader header; 4014 gpu::CommandHeader header;
4015 uint32 program; 4015 uint32 program;
4016 uint32 location; 4016 int32 location;
4017 uint32 params_shm_id; 4017 uint32 params_shm_id;
4018 uint32 params_shm_offset; 4018 uint32 params_shm_offset;
4019 }; 4019 };
4020 4020
4021 COMPILE_ASSERT(sizeof(GetUniformfv) == 20, 4021 COMPILE_ASSERT(sizeof(GetUniformfv) == 20,
4022 Sizeof_GetUniformfv_is_not_20); 4022 Sizeof_GetUniformfv_is_not_20);
4023 COMPILE_ASSERT(offsetof(GetUniformfv, header) == 0, 4023 COMPILE_ASSERT(offsetof(GetUniformfv, header) == 0,
4024 OffsetOf_GetUniformfv_header_not_0); 4024 OffsetOf_GetUniformfv_header_not_0);
4025 COMPILE_ASSERT(offsetof(GetUniformfv, program) == 4, 4025 COMPILE_ASSERT(offsetof(GetUniformfv, program) == 4,
4026 OffsetOf_GetUniformfv_program_not_4); 4026 OffsetOf_GetUniformfv_program_not_4);
(...skipping 30 matching lines...) Expand all
4057 void* Set( 4057 void* Set(
4058 void* cmd, GLuint _program, GLint _location, uint32 _params_shm_id, 4058 void* cmd, GLuint _program, GLint _location, uint32 _params_shm_id,
4059 uint32 _params_shm_offset) { 4059 uint32 _params_shm_offset) {
4060 static_cast<ValueType*>( 4060 static_cast<ValueType*>(
4061 cmd)->Init(_program, _location, _params_shm_id, _params_shm_offset); 4061 cmd)->Init(_program, _location, _params_shm_id, _params_shm_offset);
4062 return NextCmdAddress<ValueType>(cmd); 4062 return NextCmdAddress<ValueType>(cmd);
4063 } 4063 }
4064 4064
4065 gpu::CommandHeader header; 4065 gpu::CommandHeader header;
4066 uint32 program; 4066 uint32 program;
4067 uint32 location; 4067 int32 location;
4068 uint32 params_shm_id; 4068 uint32 params_shm_id;
4069 uint32 params_shm_offset; 4069 uint32 params_shm_offset;
4070 }; 4070 };
4071 4071
4072 COMPILE_ASSERT(sizeof(GetUniformiv) == 20, 4072 COMPILE_ASSERT(sizeof(GetUniformiv) == 20,
4073 Sizeof_GetUniformiv_is_not_20); 4073 Sizeof_GetUniformiv_is_not_20);
4074 COMPILE_ASSERT(offsetof(GetUniformiv, header) == 0, 4074 COMPILE_ASSERT(offsetof(GetUniformiv, header) == 0,
4075 OffsetOf_GetUniformiv_header_not_0); 4075 OffsetOf_GetUniformiv_header_not_0);
4076 COMPILE_ASSERT(offsetof(GetUniformiv, program) == 4, 4076 COMPILE_ASSERT(offsetof(GetUniformiv, program) == 4,
4077 OffsetOf_GetUniformiv_program_not_4); 4077 OffsetOf_GetUniformiv_program_not_4);
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
4679 param = _param; 4679 param = _param;
4680 } 4680 }
4681 4681
4682 void* Set(void* cmd, GLenum _pname, GLint _param) { 4682 void* Set(void* cmd, GLenum _pname, GLint _param) {
4683 static_cast<ValueType*>(cmd)->Init(_pname, _param); 4683 static_cast<ValueType*>(cmd)->Init(_pname, _param);
4684 return NextCmdAddress<ValueType>(cmd); 4684 return NextCmdAddress<ValueType>(cmd);
4685 } 4685 }
4686 4686
4687 gpu::CommandHeader header; 4687 gpu::CommandHeader header;
4688 uint32 pname; 4688 uint32 pname;
4689 uint32 param; 4689 int32 param;
4690 }; 4690 };
4691 4691
4692 COMPILE_ASSERT(sizeof(PixelStorei) == 12, 4692 COMPILE_ASSERT(sizeof(PixelStorei) == 12,
4693 Sizeof_PixelStorei_is_not_12); 4693 Sizeof_PixelStorei_is_not_12);
4694 COMPILE_ASSERT(offsetof(PixelStorei, header) == 0, 4694 COMPILE_ASSERT(offsetof(PixelStorei, header) == 0,
4695 OffsetOf_PixelStorei_header_not_0); 4695 OffsetOf_PixelStorei_header_not_0);
4696 COMPILE_ASSERT(offsetof(PixelStorei, pname) == 4, 4696 COMPILE_ASSERT(offsetof(PixelStorei, pname) == 4,
4697 OffsetOf_PixelStorei_pname_not_4); 4697 OffsetOf_PixelStorei_pname_not_4);
4698 COMPILE_ASSERT(offsetof(PixelStorei, param) == 8, 4698 COMPILE_ASSERT(offsetof(PixelStorei, param) == 8,
4699 OffsetOf_PixelStorei_param_not_8); 4699 OffsetOf_PixelStorei_param_not_8);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
4768 GLenum _format, GLenum _type, uint32 _pixels_shm_id, 4768 GLenum _format, GLenum _type, uint32 _pixels_shm_id,
4769 uint32 _pixels_shm_offset) { 4769 uint32 _pixels_shm_offset) {
4770 static_cast<ValueType*>( 4770 static_cast<ValueType*>(
4771 cmd)->Init( 4771 cmd)->Init(
4772 _x, _y, _width, _height, _format, _type, _pixels_shm_id, 4772 _x, _y, _width, _height, _format, _type, _pixels_shm_id,
4773 _pixels_shm_offset); 4773 _pixels_shm_offset);
4774 return NextCmdAddress<ValueType>(cmd); 4774 return NextCmdAddress<ValueType>(cmd);
4775 } 4775 }
4776 4776
4777 gpu::CommandHeader header; 4777 gpu::CommandHeader header;
4778 uint32 x; 4778 int32 x;
4779 uint32 y; 4779 int32 y;
4780 uint32 width; 4780 int32 width;
4781 uint32 height; 4781 int32 height;
4782 uint32 format; 4782 uint32 format;
4783 uint32 type; 4783 uint32 type;
4784 uint32 pixels_shm_id; 4784 uint32 pixels_shm_id;
4785 uint32 pixels_shm_offset; 4785 uint32 pixels_shm_offset;
4786 }; 4786 };
4787 4787
4788 COMPILE_ASSERT(sizeof(ReadPixels) == 36, 4788 COMPILE_ASSERT(sizeof(ReadPixels) == 36,
4789 Sizeof_ReadPixels_is_not_36); 4789 Sizeof_ReadPixels_is_not_36);
4790 COMPILE_ASSERT(offsetof(ReadPixels, header) == 0, 4790 COMPILE_ASSERT(offsetof(ReadPixels, header) == 0,
4791 OffsetOf_ReadPixels_header_not_0); 4791 OffsetOf_ReadPixels_header_not_0);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
4833 void* cmd, GLenum _target, GLenum _internalformat, GLsizei _width, 4833 void* cmd, GLenum _target, GLenum _internalformat, GLsizei _width,
4834 GLsizei _height) { 4834 GLsizei _height) {
4835 static_cast<ValueType*>( 4835 static_cast<ValueType*>(
4836 cmd)->Init(_target, _internalformat, _width, _height); 4836 cmd)->Init(_target, _internalformat, _width, _height);
4837 return NextCmdAddress<ValueType>(cmd); 4837 return NextCmdAddress<ValueType>(cmd);
4838 } 4838 }
4839 4839
4840 gpu::CommandHeader header; 4840 gpu::CommandHeader header;
4841 uint32 target; 4841 uint32 target;
4842 uint32 internalformat; 4842 uint32 internalformat;
4843 uint32 width; 4843 int32 width;
4844 uint32 height; 4844 int32 height;
4845 }; 4845 };
4846 4846
4847 COMPILE_ASSERT(sizeof(RenderbufferStorage) == 20, 4847 COMPILE_ASSERT(sizeof(RenderbufferStorage) == 20,
4848 Sizeof_RenderbufferStorage_is_not_20); 4848 Sizeof_RenderbufferStorage_is_not_20);
4849 COMPILE_ASSERT(offsetof(RenderbufferStorage, header) == 0, 4849 COMPILE_ASSERT(offsetof(RenderbufferStorage, header) == 0,
4850 OffsetOf_RenderbufferStorage_header_not_0); 4850 OffsetOf_RenderbufferStorage_header_not_0);
4851 COMPILE_ASSERT(offsetof(RenderbufferStorage, target) == 4, 4851 COMPILE_ASSERT(offsetof(RenderbufferStorage, target) == 4,
4852 OffsetOf_RenderbufferStorage_target_not_4); 4852 OffsetOf_RenderbufferStorage_target_not_4);
4853 COMPILE_ASSERT(offsetof(RenderbufferStorage, internalformat) == 8, 4853 COMPILE_ASSERT(offsetof(RenderbufferStorage, internalformat) == 8,
4854 OffsetOf_RenderbufferStorage_internalformat_not_8); 4854 OffsetOf_RenderbufferStorage_internalformat_not_8);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
4915 width = _width; 4915 width = _width;
4916 height = _height; 4916 height = _height;
4917 } 4917 }
4918 4918
4919 void* Set(void* cmd, GLint _x, GLint _y, GLsizei _width, GLsizei _height) { 4919 void* Set(void* cmd, GLint _x, GLint _y, GLsizei _width, GLsizei _height) {
4920 static_cast<ValueType*>(cmd)->Init(_x, _y, _width, _height); 4920 static_cast<ValueType*>(cmd)->Init(_x, _y, _width, _height);
4921 return NextCmdAddress<ValueType>(cmd); 4921 return NextCmdAddress<ValueType>(cmd);
4922 } 4922 }
4923 4923
4924 gpu::CommandHeader header; 4924 gpu::CommandHeader header;
4925 uint32 x; 4925 int32 x;
4926 uint32 y; 4926 int32 y;
4927 uint32 width; 4927 int32 width;
4928 uint32 height; 4928 int32 height;
4929 }; 4929 };
4930 4930
4931 COMPILE_ASSERT(sizeof(Scissor) == 20, 4931 COMPILE_ASSERT(sizeof(Scissor) == 20,
4932 Sizeof_Scissor_is_not_20); 4932 Sizeof_Scissor_is_not_20);
4933 COMPILE_ASSERT(offsetof(Scissor, header) == 0, 4933 COMPILE_ASSERT(offsetof(Scissor, header) == 0,
4934 OffsetOf_Scissor_header_not_0); 4934 OffsetOf_Scissor_header_not_0);
4935 COMPILE_ASSERT(offsetof(Scissor, x) == 4, 4935 COMPILE_ASSERT(offsetof(Scissor, x) == 4,
4936 OffsetOf_Scissor_x_not_4); 4936 OffsetOf_Scissor_x_not_4);
4937 COMPILE_ASSERT(offsetof(Scissor, y) == 8, 4937 COMPILE_ASSERT(offsetof(Scissor, y) == 8,
4938 OffsetOf_Scissor_y_not_8); 4938 OffsetOf_Scissor_y_not_8);
(...skipping 30 matching lines...) Expand all
4969 void* cmd, GLuint _shader, GLsizei _count, uint32 _data_shm_id, 4969 void* cmd, GLuint _shader, GLsizei _count, uint32 _data_shm_id,
4970 uint32 _data_shm_offset, uint32 _data_size) { 4970 uint32 _data_shm_offset, uint32 _data_size) {
4971 static_cast<ValueType*>( 4971 static_cast<ValueType*>(
4972 cmd)->Init( 4972 cmd)->Init(
4973 _shader, _count, _data_shm_id, _data_shm_offset, _data_size); 4973 _shader, _count, _data_shm_id, _data_shm_offset, _data_size);
4974 return NextCmdAddress<ValueType>(cmd); 4974 return NextCmdAddress<ValueType>(cmd);
4975 } 4975 }
4976 4976
4977 gpu::CommandHeader header; 4977 gpu::CommandHeader header;
4978 uint32 shader; 4978 uint32 shader;
4979 uint32 count; 4979 int32 count;
4980 uint32 data_shm_id; 4980 uint32 data_shm_id;
4981 uint32 data_shm_offset; 4981 uint32 data_shm_offset;
4982 uint32 data_size; 4982 uint32 data_size;
4983 }; 4983 };
4984 4984
4985 COMPILE_ASSERT(sizeof(ShaderSource) == 24, 4985 COMPILE_ASSERT(sizeof(ShaderSource) == 24,
4986 Sizeof_ShaderSource_is_not_24); 4986 Sizeof_ShaderSource_is_not_24);
4987 COMPILE_ASSERT(offsetof(ShaderSource, header) == 0, 4987 COMPILE_ASSERT(offsetof(ShaderSource, header) == 0,
4988 OffsetOf_ShaderSource_header_not_0); 4988 OffsetOf_ShaderSource_header_not_0);
4989 COMPILE_ASSERT(offsetof(ShaderSource, shader) == 4, 4989 COMPILE_ASSERT(offsetof(ShaderSource, shader) == 4,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
5021 } 5021 }
5022 5022
5023 void* Set(void* cmd, GLuint _shader, GLsizei _count, uint32 _data_size) { 5023 void* Set(void* cmd, GLuint _shader, GLsizei _count, uint32 _data_size) {
5024 uint32 total_size = ComputeSize(_data_size); 5024 uint32 total_size = ComputeSize(_data_size);
5025 static_cast<ValueType*>(cmd)->Init(_shader, _count, _data_size); 5025 static_cast<ValueType*>(cmd)->Init(_shader, _count, _data_size);
5026 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); 5026 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size);
5027 } 5027 }
5028 5028
5029 gpu::CommandHeader header; 5029 gpu::CommandHeader header;
5030 uint32 shader; 5030 uint32 shader;
5031 uint32 count; 5031 int32 count;
5032 uint32 data_size; 5032 uint32 data_size;
5033 }; 5033 };
5034 5034
5035 COMPILE_ASSERT(sizeof(ShaderSourceImmediate) == 16, 5035 COMPILE_ASSERT(sizeof(ShaderSourceImmediate) == 16,
5036 Sizeof_ShaderSourceImmediate_is_not_16); 5036 Sizeof_ShaderSourceImmediate_is_not_16);
5037 COMPILE_ASSERT(offsetof(ShaderSourceImmediate, header) == 0, 5037 COMPILE_ASSERT(offsetof(ShaderSourceImmediate, header) == 0,
5038 OffsetOf_ShaderSourceImmediate_header_not_0); 5038 OffsetOf_ShaderSourceImmediate_header_not_0);
5039 COMPILE_ASSERT(offsetof(ShaderSourceImmediate, shader) == 4, 5039 COMPILE_ASSERT(offsetof(ShaderSourceImmediate, shader) == 4,
5040 OffsetOf_ShaderSourceImmediate_shader_not_4); 5040 OffsetOf_ShaderSourceImmediate_shader_not_4);
5041 COMPILE_ASSERT(offsetof(ShaderSourceImmediate, count) == 8, 5041 COMPILE_ASSERT(offsetof(ShaderSourceImmediate, count) == 8,
(...skipping 21 matching lines...) Expand all
5063 mask = _mask; 5063 mask = _mask;
5064 } 5064 }
5065 5065
5066 void* Set(void* cmd, GLenum _func, GLint _ref, GLuint _mask) { 5066 void* Set(void* cmd, GLenum _func, GLint _ref, GLuint _mask) {
5067 static_cast<ValueType*>(cmd)->Init(_func, _ref, _mask); 5067 static_cast<ValueType*>(cmd)->Init(_func, _ref, _mask);
5068 return NextCmdAddress<ValueType>(cmd); 5068 return NextCmdAddress<ValueType>(cmd);
5069 } 5069 }
5070 5070
5071 gpu::CommandHeader header; 5071 gpu::CommandHeader header;
5072 uint32 func; 5072 uint32 func;
5073 uint32 ref; 5073 int32 ref;
5074 uint32 mask; 5074 uint32 mask;
5075 }; 5075 };
5076 5076
5077 COMPILE_ASSERT(sizeof(StencilFunc) == 16, 5077 COMPILE_ASSERT(sizeof(StencilFunc) == 16,
5078 Sizeof_StencilFunc_is_not_16); 5078 Sizeof_StencilFunc_is_not_16);
5079 COMPILE_ASSERT(offsetof(StencilFunc, header) == 0, 5079 COMPILE_ASSERT(offsetof(StencilFunc, header) == 0,
5080 OffsetOf_StencilFunc_header_not_0); 5080 OffsetOf_StencilFunc_header_not_0);
5081 COMPILE_ASSERT(offsetof(StencilFunc, func) == 4, 5081 COMPILE_ASSERT(offsetof(StencilFunc, func) == 4,
5082 OffsetOf_StencilFunc_func_not_4); 5082 OffsetOf_StencilFunc_func_not_4);
5083 COMPILE_ASSERT(offsetof(StencilFunc, ref) == 8, 5083 COMPILE_ASSERT(offsetof(StencilFunc, ref) == 8,
(...skipping 23 matching lines...) Expand all
5107 } 5107 }
5108 5108
5109 void* Set(void* cmd, GLenum _face, GLenum _func, GLint _ref, GLuint _mask) { 5109 void* Set(void* cmd, GLenum _face, GLenum _func, GLint _ref, GLuint _mask) {
5110 static_cast<ValueType*>(cmd)->Init(_face, _func, _ref, _mask); 5110 static_cast<ValueType*>(cmd)->Init(_face, _func, _ref, _mask);
5111 return NextCmdAddress<ValueType>(cmd); 5111 return NextCmdAddress<ValueType>(cmd);
5112 } 5112 }
5113 5113
5114 gpu::CommandHeader header; 5114 gpu::CommandHeader header;
5115 uint32 face; 5115 uint32 face;
5116 uint32 func; 5116 uint32 func;
5117 uint32 ref; 5117 int32 ref;
5118 uint32 mask; 5118 uint32 mask;
5119 }; 5119 };
5120 5120
5121 COMPILE_ASSERT(sizeof(StencilFuncSeparate) == 20, 5121 COMPILE_ASSERT(sizeof(StencilFuncSeparate) == 20,
5122 Sizeof_StencilFuncSeparate_is_not_20); 5122 Sizeof_StencilFuncSeparate_is_not_20);
5123 COMPILE_ASSERT(offsetof(StencilFuncSeparate, header) == 0, 5123 COMPILE_ASSERT(offsetof(StencilFuncSeparate, header) == 0,
5124 OffsetOf_StencilFuncSeparate_header_not_0); 5124 OffsetOf_StencilFuncSeparate_header_not_0);
5125 COMPILE_ASSERT(offsetof(StencilFuncSeparate, face) == 4, 5125 COMPILE_ASSERT(offsetof(StencilFuncSeparate, face) == 4,
5126 OffsetOf_StencilFuncSeparate_face_not_4); 5126 OffsetOf_StencilFuncSeparate_face_not_4);
5127 COMPILE_ASSERT(offsetof(StencilFuncSeparate, func) == 8, 5127 COMPILE_ASSERT(offsetof(StencilFuncSeparate, func) == 8,
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
5328 GLenum _type, uint32 _pixels_shm_id, uint32 _pixels_shm_offset) { 5328 GLenum _type, uint32 _pixels_shm_id, uint32 _pixels_shm_offset) {
5329 static_cast<ValueType*>( 5329 static_cast<ValueType*>(
5330 cmd)->Init( 5330 cmd)->Init(
5331 _target, _level, _internalformat, _width, _height, _border, _format, 5331 _target, _level, _internalformat, _width, _height, _border, _format,
5332 _type, _pixels_shm_id, _pixels_shm_offset); 5332 _type, _pixels_shm_id, _pixels_shm_offset);
5333 return NextCmdAddress<ValueType>(cmd); 5333 return NextCmdAddress<ValueType>(cmd);
5334 } 5334 }
5335 5335
5336 gpu::CommandHeader header; 5336 gpu::CommandHeader header;
5337 uint32 target; 5337 uint32 target;
5338 uint32 level; 5338 int32 level;
5339 uint32 internalformat; 5339 int32 internalformat;
5340 uint32 width; 5340 int32 width;
5341 uint32 height; 5341 int32 height;
5342 uint32 border; 5342 int32 border;
5343 uint32 format; 5343 uint32 format;
5344 uint32 type; 5344 uint32 type;
5345 uint32 pixels_shm_id; 5345 uint32 pixels_shm_id;
5346 uint32 pixels_shm_offset; 5346 uint32 pixels_shm_offset;
5347 }; 5347 };
5348 5348
5349 COMPILE_ASSERT(sizeof(TexImage2D) == 44, 5349 COMPILE_ASSERT(sizeof(TexImage2D) == 44,
5350 Sizeof_TexImage2D_is_not_44); 5350 Sizeof_TexImage2D_is_not_44);
5351 COMPILE_ASSERT(offsetof(TexImage2D, header) == 0, 5351 COMPILE_ASSERT(offsetof(TexImage2D, header) == 0,
5352 OffsetOf_TexImage2D_header_not_0); 5352 OffsetOf_TexImage2D_header_not_0);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
5408 uint32 total_size = 0; // TODO(gman): get correct size. 5408 uint32 total_size = 0; // TODO(gman): get correct size.
5409 static_cast<ValueType*>( 5409 static_cast<ValueType*>(
5410 cmd)->Init( 5410 cmd)->Init(
5411 _target, _level, _internalformat, _width, _height, _border, _format, 5411 _target, _level, _internalformat, _width, _height, _border, _format,
5412 _type); 5412 _type);
5413 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); 5413 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size);
5414 } 5414 }
5415 5415
5416 gpu::CommandHeader header; 5416 gpu::CommandHeader header;
5417 uint32 target; 5417 uint32 target;
5418 uint32 level; 5418 int32 level;
5419 uint32 internalformat; 5419 int32 internalformat;
5420 uint32 width; 5420 int32 width;
5421 uint32 height; 5421 int32 height;
5422 uint32 border; 5422 int32 border;
5423 uint32 format; 5423 uint32 format;
5424 uint32 type; 5424 uint32 type;
5425 }; 5425 };
5426 5426
5427 COMPILE_ASSERT(sizeof(TexImage2DImmediate) == 36, 5427 COMPILE_ASSERT(sizeof(TexImage2DImmediate) == 36,
5428 Sizeof_TexImage2DImmediate_is_not_36); 5428 Sizeof_TexImage2DImmediate_is_not_36);
5429 COMPILE_ASSERT(offsetof(TexImage2DImmediate, header) == 0, 5429 COMPILE_ASSERT(offsetof(TexImage2DImmediate, header) == 0,
5430 OffsetOf_TexImage2DImmediate_header_not_0); 5430 OffsetOf_TexImage2DImmediate_header_not_0);
5431 COMPILE_ASSERT(offsetof(TexImage2DImmediate, target) == 4, 5431 COMPILE_ASSERT(offsetof(TexImage2DImmediate, target) == 4,
5432 OffsetOf_TexImage2DImmediate_target_not_4); 5432 OffsetOf_TexImage2DImmediate_target_not_4);
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
5606 } 5606 }
5607 5607
5608 void* Set(void* cmd, GLenum _target, GLenum _pname, GLint _param) { 5608 void* Set(void* cmd, GLenum _target, GLenum _pname, GLint _param) {
5609 static_cast<ValueType*>(cmd)->Init(_target, _pname, _param); 5609 static_cast<ValueType*>(cmd)->Init(_target, _pname, _param);
5610 return NextCmdAddress<ValueType>(cmd); 5610 return NextCmdAddress<ValueType>(cmd);
5611 } 5611 }
5612 5612
5613 gpu::CommandHeader header; 5613 gpu::CommandHeader header;
5614 uint32 target; 5614 uint32 target;
5615 uint32 pname; 5615 uint32 pname;
5616 uint32 param; 5616 int32 param;
5617 }; 5617 };
5618 5618
5619 COMPILE_ASSERT(sizeof(TexParameteri) == 16, 5619 COMPILE_ASSERT(sizeof(TexParameteri) == 16,
5620 Sizeof_TexParameteri_is_not_16); 5620 Sizeof_TexParameteri_is_not_16);
5621 COMPILE_ASSERT(offsetof(TexParameteri, header) == 0, 5621 COMPILE_ASSERT(offsetof(TexParameteri, header) == 0,
5622 OffsetOf_TexParameteri_header_not_0); 5622 OffsetOf_TexParameteri_header_not_0);
5623 COMPILE_ASSERT(offsetof(TexParameteri, target) == 4, 5623 COMPILE_ASSERT(offsetof(TexParameteri, target) == 4,
5624 OffsetOf_TexParameteri_target_not_4); 5624 OffsetOf_TexParameteri_target_not_4);
5625 COMPILE_ASSERT(offsetof(TexParameteri, pname) == 8, 5625 COMPILE_ASSERT(offsetof(TexParameteri, pname) == 8,
5626 OffsetOf_TexParameteri_pname_not_8); 5626 OffsetOf_TexParameteri_pname_not_8);
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
5761 uint32 _pixels_shm_id, uint32 _pixels_shm_offset) { 5761 uint32 _pixels_shm_id, uint32 _pixels_shm_offset) {
5762 static_cast<ValueType*>( 5762 static_cast<ValueType*>(
5763 cmd)->Init( 5763 cmd)->Init(
5764 _target, _level, _xoffset, _yoffset, _width, _height, _format, 5764 _target, _level, _xoffset, _yoffset, _width, _height, _format,
5765 _type, _pixels_shm_id, _pixels_shm_offset); 5765 _type, _pixels_shm_id, _pixels_shm_offset);
5766 return NextCmdAddress<ValueType>(cmd); 5766 return NextCmdAddress<ValueType>(cmd);
5767 } 5767 }
5768 5768
5769 gpu::CommandHeader header; 5769 gpu::CommandHeader header;
5770 uint32 target; 5770 uint32 target;
5771 uint32 level; 5771 int32 level;
5772 uint32 xoffset; 5772 int32 xoffset;
5773 uint32 yoffset; 5773 int32 yoffset;
5774 uint32 width; 5774 int32 width;
5775 uint32 height; 5775 int32 height;
5776 uint32 format; 5776 uint32 format;
5777 uint32 type; 5777 uint32 type;
5778 uint32 pixels_shm_id; 5778 uint32 pixels_shm_id;
5779 uint32 pixels_shm_offset; 5779 uint32 pixels_shm_offset;
5780 }; 5780 };
5781 5781
5782 COMPILE_ASSERT(sizeof(TexSubImage2D) == 44, 5782 COMPILE_ASSERT(sizeof(TexSubImage2D) == 44,
5783 Sizeof_TexSubImage2D_is_not_44); 5783 Sizeof_TexSubImage2D_is_not_44);
5784 COMPILE_ASSERT(offsetof(TexSubImage2D, header) == 0, 5784 COMPILE_ASSERT(offsetof(TexSubImage2D, header) == 0,
5785 OffsetOf_TexSubImage2D_header_not_0); 5785 OffsetOf_TexSubImage2D_header_not_0);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
5840 uint32 total_size = 0; // TODO(gman): get correct size 5840 uint32 total_size = 0; // TODO(gman): get correct size
5841 static_cast<ValueType*>( 5841 static_cast<ValueType*>(
5842 cmd)->Init( 5842 cmd)->Init(
5843 _target, _level, _xoffset, _yoffset, _width, _height, _format, 5843 _target, _level, _xoffset, _yoffset, _width, _height, _format,
5844 _type); 5844 _type);
5845 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); 5845 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size);
5846 } 5846 }
5847 5847
5848 gpu::CommandHeader header; 5848 gpu::CommandHeader header;
5849 uint32 target; 5849 uint32 target;
5850 uint32 level; 5850 int32 level;
5851 uint32 xoffset; 5851 int32 xoffset;
5852 uint32 yoffset; 5852 int32 yoffset;
5853 uint32 width; 5853 int32 width;
5854 uint32 height; 5854 int32 height;
5855 uint32 format; 5855 uint32 format;
5856 uint32 type; 5856 uint32 type;
5857 }; 5857 };
5858 5858
5859 COMPILE_ASSERT(sizeof(TexSubImage2DImmediate) == 36, 5859 COMPILE_ASSERT(sizeof(TexSubImage2DImmediate) == 36,
5860 Sizeof_TexSubImage2DImmediate_is_not_36); 5860 Sizeof_TexSubImage2DImmediate_is_not_36);
5861 COMPILE_ASSERT(offsetof(TexSubImage2DImmediate, header) == 0, 5861 COMPILE_ASSERT(offsetof(TexSubImage2DImmediate, header) == 0,
5862 OffsetOf_TexSubImage2DImmediate_header_not_0); 5862 OffsetOf_TexSubImage2DImmediate_header_not_0);
5863 COMPILE_ASSERT(offsetof(TexSubImage2DImmediate, target) == 4, 5863 COMPILE_ASSERT(offsetof(TexSubImage2DImmediate, target) == 4,
5864 OffsetOf_TexSubImage2DImmediate_target_not_4); 5864 OffsetOf_TexSubImage2DImmediate_target_not_4);
(...skipping 30 matching lines...) Expand all
5895 location = _location; 5895 location = _location;
5896 x = _x; 5896 x = _x;
5897 } 5897 }
5898 5898
5899 void* Set(void* cmd, GLint _location, GLfloat _x) { 5899 void* Set(void* cmd, GLint _location, GLfloat _x) {
5900 static_cast<ValueType*>(cmd)->Init(_location, _x); 5900 static_cast<ValueType*>(cmd)->Init(_location, _x);
5901 return NextCmdAddress<ValueType>(cmd); 5901 return NextCmdAddress<ValueType>(cmd);
5902 } 5902 }
5903 5903
5904 gpu::CommandHeader header; 5904 gpu::CommandHeader header;
5905 uint32 location; 5905 int32 location;
5906 float x; 5906 float x;
5907 }; 5907 };
5908 5908
5909 COMPILE_ASSERT(sizeof(Uniform1f) == 12, 5909 COMPILE_ASSERT(sizeof(Uniform1f) == 12,
5910 Sizeof_Uniform1f_is_not_12); 5910 Sizeof_Uniform1f_is_not_12);
5911 COMPILE_ASSERT(offsetof(Uniform1f, header) == 0, 5911 COMPILE_ASSERT(offsetof(Uniform1f, header) == 0,
5912 OffsetOf_Uniform1f_header_not_0); 5912 OffsetOf_Uniform1f_header_not_0);
5913 COMPILE_ASSERT(offsetof(Uniform1f, location) == 4, 5913 COMPILE_ASSERT(offsetof(Uniform1f, location) == 4,
5914 OffsetOf_Uniform1f_location_not_4); 5914 OffsetOf_Uniform1f_location_not_4);
5915 COMPILE_ASSERT(offsetof(Uniform1f, x) == 8, 5915 COMPILE_ASSERT(offsetof(Uniform1f, x) == 8,
(...skipping 24 matching lines...) Expand all
5940 5940
5941 void* Set( 5941 void* Set(
5942 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, 5942 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id,
5943 uint32 _v_shm_offset) { 5943 uint32 _v_shm_offset) {
5944 static_cast<ValueType*>( 5944 static_cast<ValueType*>(
5945 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); 5945 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset);
5946 return NextCmdAddress<ValueType>(cmd); 5946 return NextCmdAddress<ValueType>(cmd);
5947 } 5947 }
5948 5948
5949 gpu::CommandHeader header; 5949 gpu::CommandHeader header;
5950 uint32 location; 5950 int32 location;
5951 uint32 count; 5951 int32 count;
5952 uint32 v_shm_id; 5952 uint32 v_shm_id;
5953 uint32 v_shm_offset; 5953 uint32 v_shm_offset;
5954 }; 5954 };
5955 5955
5956 COMPILE_ASSERT(sizeof(Uniform1fv) == 20, 5956 COMPILE_ASSERT(sizeof(Uniform1fv) == 20,
5957 Sizeof_Uniform1fv_is_not_20); 5957 Sizeof_Uniform1fv_is_not_20);
5958 COMPILE_ASSERT(offsetof(Uniform1fv, header) == 0, 5958 COMPILE_ASSERT(offsetof(Uniform1fv, header) == 0,
5959 OffsetOf_Uniform1fv_header_not_0); 5959 OffsetOf_Uniform1fv_header_not_0);
5960 COMPILE_ASSERT(offsetof(Uniform1fv, location) == 4, 5960 COMPILE_ASSERT(offsetof(Uniform1fv, location) == 4,
5961 OffsetOf_Uniform1fv_location_not_4); 5961 OffsetOf_Uniform1fv_location_not_4);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
5993 _v, ComputeDataSize(_count)); 5993 _v, ComputeDataSize(_count));
5994 } 5994 }
5995 5995
5996 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _v) { 5996 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _v) {
5997 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); 5997 static_cast<ValueType*>(cmd)->Init(_location, _count, _v);
5998 const uint32 size = ComputeSize(_count); 5998 const uint32 size = ComputeSize(_count);
5999 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); 5999 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
6000 } 6000 }
6001 6001
6002 gpu::CommandHeader header; 6002 gpu::CommandHeader header;
6003 uint32 location; 6003 int32 location;
6004 uint32 count; 6004 int32 count;
6005 }; 6005 };
6006 6006
6007 COMPILE_ASSERT(sizeof(Uniform1fvImmediate) == 12, 6007 COMPILE_ASSERT(sizeof(Uniform1fvImmediate) == 12,
6008 Sizeof_Uniform1fvImmediate_is_not_12); 6008 Sizeof_Uniform1fvImmediate_is_not_12);
6009 COMPILE_ASSERT(offsetof(Uniform1fvImmediate, header) == 0, 6009 COMPILE_ASSERT(offsetof(Uniform1fvImmediate, header) == 0,
6010 OffsetOf_Uniform1fvImmediate_header_not_0); 6010 OffsetOf_Uniform1fvImmediate_header_not_0);
6011 COMPILE_ASSERT(offsetof(Uniform1fvImmediate, location) == 4, 6011 COMPILE_ASSERT(offsetof(Uniform1fvImmediate, location) == 4,
6012 OffsetOf_Uniform1fvImmediate_location_not_4); 6012 OffsetOf_Uniform1fvImmediate_location_not_4);
6013 COMPILE_ASSERT(offsetof(Uniform1fvImmediate, count) == 8, 6013 COMPILE_ASSERT(offsetof(Uniform1fvImmediate, count) == 8,
6014 OffsetOf_Uniform1fvImmediate_count_not_8); 6014 OffsetOf_Uniform1fvImmediate_count_not_8);
(...skipping 16 matching lines...) Expand all
6031 location = _location; 6031 location = _location;
6032 x = _x; 6032 x = _x;
6033 } 6033 }
6034 6034
6035 void* Set(void* cmd, GLint _location, GLint _x) { 6035 void* Set(void* cmd, GLint _location, GLint _x) {
6036 static_cast<ValueType*>(cmd)->Init(_location, _x); 6036 static_cast<ValueType*>(cmd)->Init(_location, _x);
6037 return NextCmdAddress<ValueType>(cmd); 6037 return NextCmdAddress<ValueType>(cmd);
6038 } 6038 }
6039 6039
6040 gpu::CommandHeader header; 6040 gpu::CommandHeader header;
6041 uint32 location; 6041 int32 location;
6042 uint32 x; 6042 int32 x;
6043 }; 6043 };
6044 6044
6045 COMPILE_ASSERT(sizeof(Uniform1i) == 12, 6045 COMPILE_ASSERT(sizeof(Uniform1i) == 12,
6046 Sizeof_Uniform1i_is_not_12); 6046 Sizeof_Uniform1i_is_not_12);
6047 COMPILE_ASSERT(offsetof(Uniform1i, header) == 0, 6047 COMPILE_ASSERT(offsetof(Uniform1i, header) == 0,
6048 OffsetOf_Uniform1i_header_not_0); 6048 OffsetOf_Uniform1i_header_not_0);
6049 COMPILE_ASSERT(offsetof(Uniform1i, location) == 4, 6049 COMPILE_ASSERT(offsetof(Uniform1i, location) == 4,
6050 OffsetOf_Uniform1i_location_not_4); 6050 OffsetOf_Uniform1i_location_not_4);
6051 COMPILE_ASSERT(offsetof(Uniform1i, x) == 8, 6051 COMPILE_ASSERT(offsetof(Uniform1i, x) == 8,
6052 OffsetOf_Uniform1i_x_not_8); 6052 OffsetOf_Uniform1i_x_not_8);
(...skipping 23 matching lines...) Expand all
6076 6076
6077 void* Set( 6077 void* Set(
6078 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, 6078 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id,
6079 uint32 _v_shm_offset) { 6079 uint32 _v_shm_offset) {
6080 static_cast<ValueType*>( 6080 static_cast<ValueType*>(
6081 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); 6081 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset);
6082 return NextCmdAddress<ValueType>(cmd); 6082 return NextCmdAddress<ValueType>(cmd);
6083 } 6083 }
6084 6084
6085 gpu::CommandHeader header; 6085 gpu::CommandHeader header;
6086 uint32 location; 6086 int32 location;
6087 uint32 count; 6087 int32 count;
6088 uint32 v_shm_id; 6088 uint32 v_shm_id;
6089 uint32 v_shm_offset; 6089 uint32 v_shm_offset;
6090 }; 6090 };
6091 6091
6092 COMPILE_ASSERT(sizeof(Uniform1iv) == 20, 6092 COMPILE_ASSERT(sizeof(Uniform1iv) == 20,
6093 Sizeof_Uniform1iv_is_not_20); 6093 Sizeof_Uniform1iv_is_not_20);
6094 COMPILE_ASSERT(offsetof(Uniform1iv, header) == 0, 6094 COMPILE_ASSERT(offsetof(Uniform1iv, header) == 0,
6095 OffsetOf_Uniform1iv_header_not_0); 6095 OffsetOf_Uniform1iv_header_not_0);
6096 COMPILE_ASSERT(offsetof(Uniform1iv, location) == 4, 6096 COMPILE_ASSERT(offsetof(Uniform1iv, location) == 4,
6097 OffsetOf_Uniform1iv_location_not_4); 6097 OffsetOf_Uniform1iv_location_not_4);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
6129 _v, ComputeDataSize(_count)); 6129 _v, ComputeDataSize(_count));
6130 } 6130 }
6131 6131
6132 void* Set(void* cmd, GLint _location, GLsizei _count, const GLint* _v) { 6132 void* Set(void* cmd, GLint _location, GLsizei _count, const GLint* _v) {
6133 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); 6133 static_cast<ValueType*>(cmd)->Init(_location, _count, _v);
6134 const uint32 size = ComputeSize(_count); 6134 const uint32 size = ComputeSize(_count);
6135 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); 6135 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
6136 } 6136 }
6137 6137
6138 gpu::CommandHeader header; 6138 gpu::CommandHeader header;
6139 uint32 location; 6139 int32 location;
6140 uint32 count; 6140 int32 count;
6141 }; 6141 };
6142 6142
6143 COMPILE_ASSERT(sizeof(Uniform1ivImmediate) == 12, 6143 COMPILE_ASSERT(sizeof(Uniform1ivImmediate) == 12,
6144 Sizeof_Uniform1ivImmediate_is_not_12); 6144 Sizeof_Uniform1ivImmediate_is_not_12);
6145 COMPILE_ASSERT(offsetof(Uniform1ivImmediate, header) == 0, 6145 COMPILE_ASSERT(offsetof(Uniform1ivImmediate, header) == 0,
6146 OffsetOf_Uniform1ivImmediate_header_not_0); 6146 OffsetOf_Uniform1ivImmediate_header_not_0);
6147 COMPILE_ASSERT(offsetof(Uniform1ivImmediate, location) == 4, 6147 COMPILE_ASSERT(offsetof(Uniform1ivImmediate, location) == 4,
6148 OffsetOf_Uniform1ivImmediate_location_not_4); 6148 OffsetOf_Uniform1ivImmediate_location_not_4);
6149 COMPILE_ASSERT(offsetof(Uniform1ivImmediate, count) == 8, 6149 COMPILE_ASSERT(offsetof(Uniform1ivImmediate, count) == 8,
6150 OffsetOf_Uniform1ivImmediate_count_not_8); 6150 OffsetOf_Uniform1ivImmediate_count_not_8);
(...skipping 17 matching lines...) Expand all
6168 x = _x; 6168 x = _x;
6169 y = _y; 6169 y = _y;
6170 } 6170 }
6171 6171
6172 void* Set(void* cmd, GLint _location, GLfloat _x, GLfloat _y) { 6172 void* Set(void* cmd, GLint _location, GLfloat _x, GLfloat _y) {
6173 static_cast<ValueType*>(cmd)->Init(_location, _x, _y); 6173 static_cast<ValueType*>(cmd)->Init(_location, _x, _y);
6174 return NextCmdAddress<ValueType>(cmd); 6174 return NextCmdAddress<ValueType>(cmd);
6175 } 6175 }
6176 6176
6177 gpu::CommandHeader header; 6177 gpu::CommandHeader header;
6178 uint32 location; 6178 int32 location;
6179 float x; 6179 float x;
6180 float y; 6180 float y;
6181 }; 6181 };
6182 6182
6183 COMPILE_ASSERT(sizeof(Uniform2f) == 16, 6183 COMPILE_ASSERT(sizeof(Uniform2f) == 16,
6184 Sizeof_Uniform2f_is_not_16); 6184 Sizeof_Uniform2f_is_not_16);
6185 COMPILE_ASSERT(offsetof(Uniform2f, header) == 0, 6185 COMPILE_ASSERT(offsetof(Uniform2f, header) == 0,
6186 OffsetOf_Uniform2f_header_not_0); 6186 OffsetOf_Uniform2f_header_not_0);
6187 COMPILE_ASSERT(offsetof(Uniform2f, location) == 4, 6187 COMPILE_ASSERT(offsetof(Uniform2f, location) == 4,
6188 OffsetOf_Uniform2f_location_not_4); 6188 OffsetOf_Uniform2f_location_not_4);
(...skipping 27 matching lines...) Expand all
6216 6216
6217 void* Set( 6217 void* Set(
6218 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, 6218 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id,
6219 uint32 _v_shm_offset) { 6219 uint32 _v_shm_offset) {
6220 static_cast<ValueType*>( 6220 static_cast<ValueType*>(
6221 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); 6221 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset);
6222 return NextCmdAddress<ValueType>(cmd); 6222 return NextCmdAddress<ValueType>(cmd);
6223 } 6223 }
6224 6224
6225 gpu::CommandHeader header; 6225 gpu::CommandHeader header;
6226 uint32 location; 6226 int32 location;
6227 uint32 count; 6227 int32 count;
6228 uint32 v_shm_id; 6228 uint32 v_shm_id;
6229 uint32 v_shm_offset; 6229 uint32 v_shm_offset;
6230 }; 6230 };
6231 6231
6232 COMPILE_ASSERT(sizeof(Uniform2fv) == 20, 6232 COMPILE_ASSERT(sizeof(Uniform2fv) == 20,
6233 Sizeof_Uniform2fv_is_not_20); 6233 Sizeof_Uniform2fv_is_not_20);
6234 COMPILE_ASSERT(offsetof(Uniform2fv, header) == 0, 6234 COMPILE_ASSERT(offsetof(Uniform2fv, header) == 0,
6235 OffsetOf_Uniform2fv_header_not_0); 6235 OffsetOf_Uniform2fv_header_not_0);
6236 COMPILE_ASSERT(offsetof(Uniform2fv, location) == 4, 6236 COMPILE_ASSERT(offsetof(Uniform2fv, location) == 4,
6237 OffsetOf_Uniform2fv_location_not_4); 6237 OffsetOf_Uniform2fv_location_not_4);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
6269 _v, ComputeDataSize(_count)); 6269 _v, ComputeDataSize(_count));
6270 } 6270 }
6271 6271
6272 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _v) { 6272 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _v) {
6273 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); 6273 static_cast<ValueType*>(cmd)->Init(_location, _count, _v);
6274 const uint32 size = ComputeSize(_count); 6274 const uint32 size = ComputeSize(_count);
6275 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); 6275 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
6276 } 6276 }
6277 6277
6278 gpu::CommandHeader header; 6278 gpu::CommandHeader header;
6279 uint32 location; 6279 int32 location;
6280 uint32 count; 6280 int32 count;
6281 }; 6281 };
6282 6282
6283 COMPILE_ASSERT(sizeof(Uniform2fvImmediate) == 12, 6283 COMPILE_ASSERT(sizeof(Uniform2fvImmediate) == 12,
6284 Sizeof_Uniform2fvImmediate_is_not_12); 6284 Sizeof_Uniform2fvImmediate_is_not_12);
6285 COMPILE_ASSERT(offsetof(Uniform2fvImmediate, header) == 0, 6285 COMPILE_ASSERT(offsetof(Uniform2fvImmediate, header) == 0,
6286 OffsetOf_Uniform2fvImmediate_header_not_0); 6286 OffsetOf_Uniform2fvImmediate_header_not_0);
6287 COMPILE_ASSERT(offsetof(Uniform2fvImmediate, location) == 4, 6287 COMPILE_ASSERT(offsetof(Uniform2fvImmediate, location) == 4,
6288 OffsetOf_Uniform2fvImmediate_location_not_4); 6288 OffsetOf_Uniform2fvImmediate_location_not_4);
6289 COMPILE_ASSERT(offsetof(Uniform2fvImmediate, count) == 8, 6289 COMPILE_ASSERT(offsetof(Uniform2fvImmediate, count) == 8,
6290 OffsetOf_Uniform2fvImmediate_count_not_8); 6290 OffsetOf_Uniform2fvImmediate_count_not_8);
(...skipping 17 matching lines...) Expand all
6308 x = _x; 6308 x = _x;
6309 y = _y; 6309 y = _y;
6310 } 6310 }
6311 6311
6312 void* Set(void* cmd, GLint _location, GLint _x, GLint _y) { 6312 void* Set(void* cmd, GLint _location, GLint _x, GLint _y) {
6313 static_cast<ValueType*>(cmd)->Init(_location, _x, _y); 6313 static_cast<ValueType*>(cmd)->Init(_location, _x, _y);
6314 return NextCmdAddress<ValueType>(cmd); 6314 return NextCmdAddress<ValueType>(cmd);
6315 } 6315 }
6316 6316
6317 gpu::CommandHeader header; 6317 gpu::CommandHeader header;
6318 uint32 location; 6318 int32 location;
6319 uint32 x; 6319 int32 x;
6320 uint32 y; 6320 int32 y;
6321 }; 6321 };
6322 6322
6323 COMPILE_ASSERT(sizeof(Uniform2i) == 16, 6323 COMPILE_ASSERT(sizeof(Uniform2i) == 16,
6324 Sizeof_Uniform2i_is_not_16); 6324 Sizeof_Uniform2i_is_not_16);
6325 COMPILE_ASSERT(offsetof(Uniform2i, header) == 0, 6325 COMPILE_ASSERT(offsetof(Uniform2i, header) == 0,
6326 OffsetOf_Uniform2i_header_not_0); 6326 OffsetOf_Uniform2i_header_not_0);
6327 COMPILE_ASSERT(offsetof(Uniform2i, location) == 4, 6327 COMPILE_ASSERT(offsetof(Uniform2i, location) == 4,
6328 OffsetOf_Uniform2i_location_not_4); 6328 OffsetOf_Uniform2i_location_not_4);
6329 COMPILE_ASSERT(offsetof(Uniform2i, x) == 8, 6329 COMPILE_ASSERT(offsetof(Uniform2i, x) == 8,
6330 OffsetOf_Uniform2i_x_not_8); 6330 OffsetOf_Uniform2i_x_not_8);
(...skipping 25 matching lines...) Expand all
6356 6356
6357 void* Set( 6357 void* Set(
6358 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, 6358 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id,
6359 uint32 _v_shm_offset) { 6359 uint32 _v_shm_offset) {
6360 static_cast<ValueType*>( 6360 static_cast<ValueType*>(
6361 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); 6361 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset);
6362 return NextCmdAddress<ValueType>(cmd); 6362 return NextCmdAddress<ValueType>(cmd);
6363 } 6363 }
6364 6364
6365 gpu::CommandHeader header; 6365 gpu::CommandHeader header;
6366 uint32 location; 6366 int32 location;
6367 uint32 count; 6367 int32 count;
6368 uint32 v_shm_id; 6368 uint32 v_shm_id;
6369 uint32 v_shm_offset; 6369 uint32 v_shm_offset;
6370 }; 6370 };
6371 6371
6372 COMPILE_ASSERT(sizeof(Uniform2iv) == 20, 6372 COMPILE_ASSERT(sizeof(Uniform2iv) == 20,
6373 Sizeof_Uniform2iv_is_not_20); 6373 Sizeof_Uniform2iv_is_not_20);
6374 COMPILE_ASSERT(offsetof(Uniform2iv, header) == 0, 6374 COMPILE_ASSERT(offsetof(Uniform2iv, header) == 0,
6375 OffsetOf_Uniform2iv_header_not_0); 6375 OffsetOf_Uniform2iv_header_not_0);
6376 COMPILE_ASSERT(offsetof(Uniform2iv, location) == 4, 6376 COMPILE_ASSERT(offsetof(Uniform2iv, location) == 4,
6377 OffsetOf_Uniform2iv_location_not_4); 6377 OffsetOf_Uniform2iv_location_not_4);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
6409 _v, ComputeDataSize(_count)); 6409 _v, ComputeDataSize(_count));
6410 } 6410 }
6411 6411
6412 void* Set(void* cmd, GLint _location, GLsizei _count, const GLint* _v) { 6412 void* Set(void* cmd, GLint _location, GLsizei _count, const GLint* _v) {
6413 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); 6413 static_cast<ValueType*>(cmd)->Init(_location, _count, _v);
6414 const uint32 size = ComputeSize(_count); 6414 const uint32 size = ComputeSize(_count);
6415 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); 6415 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
6416 } 6416 }
6417 6417
6418 gpu::CommandHeader header; 6418 gpu::CommandHeader header;
6419 uint32 location; 6419 int32 location;
6420 uint32 count; 6420 int32 count;
6421 }; 6421 };
6422 6422
6423 COMPILE_ASSERT(sizeof(Uniform2ivImmediate) == 12, 6423 COMPILE_ASSERT(sizeof(Uniform2ivImmediate) == 12,
6424 Sizeof_Uniform2ivImmediate_is_not_12); 6424 Sizeof_Uniform2ivImmediate_is_not_12);
6425 COMPILE_ASSERT(offsetof(Uniform2ivImmediate, header) == 0, 6425 COMPILE_ASSERT(offsetof(Uniform2ivImmediate, header) == 0,
6426 OffsetOf_Uniform2ivImmediate_header_not_0); 6426 OffsetOf_Uniform2ivImmediate_header_not_0);
6427 COMPILE_ASSERT(offsetof(Uniform2ivImmediate, location) == 4, 6427 COMPILE_ASSERT(offsetof(Uniform2ivImmediate, location) == 4,
6428 OffsetOf_Uniform2ivImmediate_location_not_4); 6428 OffsetOf_Uniform2ivImmediate_location_not_4);
6429 COMPILE_ASSERT(offsetof(Uniform2ivImmediate, count) == 8, 6429 COMPILE_ASSERT(offsetof(Uniform2ivImmediate, count) == 8,
6430 OffsetOf_Uniform2ivImmediate_count_not_8); 6430 OffsetOf_Uniform2ivImmediate_count_not_8);
(...skipping 18 matching lines...) Expand all
6449 y = _y; 6449 y = _y;
6450 z = _z; 6450 z = _z;
6451 } 6451 }
6452 6452
6453 void* Set(void* cmd, GLint _location, GLfloat _x, GLfloat _y, GLfloat _z) { 6453 void* Set(void* cmd, GLint _location, GLfloat _x, GLfloat _y, GLfloat _z) {
6454 static_cast<ValueType*>(cmd)->Init(_location, _x, _y, _z); 6454 static_cast<ValueType*>(cmd)->Init(_location, _x, _y, _z);
6455 return NextCmdAddress<ValueType>(cmd); 6455 return NextCmdAddress<ValueType>(cmd);
6456 } 6456 }
6457 6457
6458 gpu::CommandHeader header; 6458 gpu::CommandHeader header;
6459 uint32 location; 6459 int32 location;
6460 float x; 6460 float x;
6461 float y; 6461 float y;
6462 float z; 6462 float z;
6463 }; 6463 };
6464 6464
6465 COMPILE_ASSERT(sizeof(Uniform3f) == 20, 6465 COMPILE_ASSERT(sizeof(Uniform3f) == 20,
6466 Sizeof_Uniform3f_is_not_20); 6466 Sizeof_Uniform3f_is_not_20);
6467 COMPILE_ASSERT(offsetof(Uniform3f, header) == 0, 6467 COMPILE_ASSERT(offsetof(Uniform3f, header) == 0,
6468 OffsetOf_Uniform3f_header_not_0); 6468 OffsetOf_Uniform3f_header_not_0);
6469 COMPILE_ASSERT(offsetof(Uniform3f, location) == 4, 6469 COMPILE_ASSERT(offsetof(Uniform3f, location) == 4,
(...skipping 30 matching lines...) Expand all
6500 6500
6501 void* Set( 6501 void* Set(
6502 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, 6502 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id,
6503 uint32 _v_shm_offset) { 6503 uint32 _v_shm_offset) {
6504 static_cast<ValueType*>( 6504 static_cast<ValueType*>(
6505 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); 6505 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset);
6506 return NextCmdAddress<ValueType>(cmd); 6506 return NextCmdAddress<ValueType>(cmd);
6507 } 6507 }
6508 6508
6509 gpu::CommandHeader header; 6509 gpu::CommandHeader header;
6510 uint32 location; 6510 int32 location;
6511 uint32 count; 6511 int32 count;
6512 uint32 v_shm_id; 6512 uint32 v_shm_id;
6513 uint32 v_shm_offset; 6513 uint32 v_shm_offset;
6514 }; 6514 };
6515 6515
6516 COMPILE_ASSERT(sizeof(Uniform3fv) == 20, 6516 COMPILE_ASSERT(sizeof(Uniform3fv) == 20,
6517 Sizeof_Uniform3fv_is_not_20); 6517 Sizeof_Uniform3fv_is_not_20);
6518 COMPILE_ASSERT(offsetof(Uniform3fv, header) == 0, 6518 COMPILE_ASSERT(offsetof(Uniform3fv, header) == 0,
6519 OffsetOf_Uniform3fv_header_not_0); 6519 OffsetOf_Uniform3fv_header_not_0);
6520 COMPILE_ASSERT(offsetof(Uniform3fv, location) == 4, 6520 COMPILE_ASSERT(offsetof(Uniform3fv, location) == 4,
6521 OffsetOf_Uniform3fv_location_not_4); 6521 OffsetOf_Uniform3fv_location_not_4);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
6553 _v, ComputeDataSize(_count)); 6553 _v, ComputeDataSize(_count));
6554 } 6554 }
6555 6555
6556 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _v) { 6556 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _v) {
6557 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); 6557 static_cast<ValueType*>(cmd)->Init(_location, _count, _v);
6558 const uint32 size = ComputeSize(_count); 6558 const uint32 size = ComputeSize(_count);
6559 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); 6559 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
6560 } 6560 }
6561 6561
6562 gpu::CommandHeader header; 6562 gpu::CommandHeader header;
6563 uint32 location; 6563 int32 location;
6564 uint32 count; 6564 int32 count;
6565 }; 6565 };
6566 6566
6567 COMPILE_ASSERT(sizeof(Uniform3fvImmediate) == 12, 6567 COMPILE_ASSERT(sizeof(Uniform3fvImmediate) == 12,
6568 Sizeof_Uniform3fvImmediate_is_not_12); 6568 Sizeof_Uniform3fvImmediate_is_not_12);
6569 COMPILE_ASSERT(offsetof(Uniform3fvImmediate, header) == 0, 6569 COMPILE_ASSERT(offsetof(Uniform3fvImmediate, header) == 0,
6570 OffsetOf_Uniform3fvImmediate_header_not_0); 6570 OffsetOf_Uniform3fvImmediate_header_not_0);
6571 COMPILE_ASSERT(offsetof(Uniform3fvImmediate, location) == 4, 6571 COMPILE_ASSERT(offsetof(Uniform3fvImmediate, location) == 4,
6572 OffsetOf_Uniform3fvImmediate_location_not_4); 6572 OffsetOf_Uniform3fvImmediate_location_not_4);
6573 COMPILE_ASSERT(offsetof(Uniform3fvImmediate, count) == 8, 6573 COMPILE_ASSERT(offsetof(Uniform3fvImmediate, count) == 8,
6574 OffsetOf_Uniform3fvImmediate_count_not_8); 6574 OffsetOf_Uniform3fvImmediate_count_not_8);
(...skipping 18 matching lines...) Expand all
6593 y = _y; 6593 y = _y;
6594 z = _z; 6594 z = _z;
6595 } 6595 }
6596 6596
6597 void* Set(void* cmd, GLint _location, GLint _x, GLint _y, GLint _z) { 6597 void* Set(void* cmd, GLint _location, GLint _x, GLint _y, GLint _z) {
6598 static_cast<ValueType*>(cmd)->Init(_location, _x, _y, _z); 6598 static_cast<ValueType*>(cmd)->Init(_location, _x, _y, _z);
6599 return NextCmdAddress<ValueType>(cmd); 6599 return NextCmdAddress<ValueType>(cmd);
6600 } 6600 }
6601 6601
6602 gpu::CommandHeader header; 6602 gpu::CommandHeader header;
6603 uint32 location; 6603 int32 location;
6604 uint32 x; 6604 int32 x;
6605 uint32 y; 6605 int32 y;
6606 uint32 z; 6606 int32 z;
6607 }; 6607 };
6608 6608
6609 COMPILE_ASSERT(sizeof(Uniform3i) == 20, 6609 COMPILE_ASSERT(sizeof(Uniform3i) == 20,
6610 Sizeof_Uniform3i_is_not_20); 6610 Sizeof_Uniform3i_is_not_20);
6611 COMPILE_ASSERT(offsetof(Uniform3i, header) == 0, 6611 COMPILE_ASSERT(offsetof(Uniform3i, header) == 0,
6612 OffsetOf_Uniform3i_header_not_0); 6612 OffsetOf_Uniform3i_header_not_0);
6613 COMPILE_ASSERT(offsetof(Uniform3i, location) == 4, 6613 COMPILE_ASSERT(offsetof(Uniform3i, location) == 4,
6614 OffsetOf_Uniform3i_location_not_4); 6614 OffsetOf_Uniform3i_location_not_4);
6615 COMPILE_ASSERT(offsetof(Uniform3i, x) == 8, 6615 COMPILE_ASSERT(offsetof(Uniform3i, x) == 8,
6616 OffsetOf_Uniform3i_x_not_8); 6616 OffsetOf_Uniform3i_x_not_8);
(...skipping 27 matching lines...) Expand all
6644 6644
6645 void* Set( 6645 void* Set(
6646 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, 6646 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id,
6647 uint32 _v_shm_offset) { 6647 uint32 _v_shm_offset) {
6648 static_cast<ValueType*>( 6648 static_cast<ValueType*>(
6649 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); 6649 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset);
6650 return NextCmdAddress<ValueType>(cmd); 6650 return NextCmdAddress<ValueType>(cmd);
6651 } 6651 }
6652 6652
6653 gpu::CommandHeader header; 6653 gpu::CommandHeader header;
6654 uint32 location; 6654 int32 location;
6655 uint32 count; 6655 int32 count;
6656 uint32 v_shm_id; 6656 uint32 v_shm_id;
6657 uint32 v_shm_offset; 6657 uint32 v_shm_offset;
6658 }; 6658 };
6659 6659
6660 COMPILE_ASSERT(sizeof(Uniform3iv) == 20, 6660 COMPILE_ASSERT(sizeof(Uniform3iv) == 20,
6661 Sizeof_Uniform3iv_is_not_20); 6661 Sizeof_Uniform3iv_is_not_20);
6662 COMPILE_ASSERT(offsetof(Uniform3iv, header) == 0, 6662 COMPILE_ASSERT(offsetof(Uniform3iv, header) == 0,
6663 OffsetOf_Uniform3iv_header_not_0); 6663 OffsetOf_Uniform3iv_header_not_0);
6664 COMPILE_ASSERT(offsetof(Uniform3iv, location) == 4, 6664 COMPILE_ASSERT(offsetof(Uniform3iv, location) == 4,
6665 OffsetOf_Uniform3iv_location_not_4); 6665 OffsetOf_Uniform3iv_location_not_4);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
6697 _v, ComputeDataSize(_count)); 6697 _v, ComputeDataSize(_count));
6698 } 6698 }
6699 6699
6700 void* Set(void* cmd, GLint _location, GLsizei _count, const GLint* _v) { 6700 void* Set(void* cmd, GLint _location, GLsizei _count, const GLint* _v) {
6701 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); 6701 static_cast<ValueType*>(cmd)->Init(_location, _count, _v);
6702 const uint32 size = ComputeSize(_count); 6702 const uint32 size = ComputeSize(_count);
6703 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); 6703 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
6704 } 6704 }
6705 6705
6706 gpu::CommandHeader header; 6706 gpu::CommandHeader header;
6707 uint32 location; 6707 int32 location;
6708 uint32 count; 6708 int32 count;
6709 }; 6709 };
6710 6710
6711 COMPILE_ASSERT(sizeof(Uniform3ivImmediate) == 12, 6711 COMPILE_ASSERT(sizeof(Uniform3ivImmediate) == 12,
6712 Sizeof_Uniform3ivImmediate_is_not_12); 6712 Sizeof_Uniform3ivImmediate_is_not_12);
6713 COMPILE_ASSERT(offsetof(Uniform3ivImmediate, header) == 0, 6713 COMPILE_ASSERT(offsetof(Uniform3ivImmediate, header) == 0,
6714 OffsetOf_Uniform3ivImmediate_header_not_0); 6714 OffsetOf_Uniform3ivImmediate_header_not_0);
6715 COMPILE_ASSERT(offsetof(Uniform3ivImmediate, location) == 4, 6715 COMPILE_ASSERT(offsetof(Uniform3ivImmediate, location) == 4,
6716 OffsetOf_Uniform3ivImmediate_location_not_4); 6716 OffsetOf_Uniform3ivImmediate_location_not_4);
6717 COMPILE_ASSERT(offsetof(Uniform3ivImmediate, count) == 8, 6717 COMPILE_ASSERT(offsetof(Uniform3ivImmediate, count) == 8,
6718 OffsetOf_Uniform3ivImmediate_count_not_8); 6718 OffsetOf_Uniform3ivImmediate_count_not_8);
(...skipping 21 matching lines...) Expand all
6740 } 6740 }
6741 6741
6742 void* Set( 6742 void* Set(
6743 void* cmd, GLint _location, GLfloat _x, GLfloat _y, GLfloat _z, 6743 void* cmd, GLint _location, GLfloat _x, GLfloat _y, GLfloat _z,
6744 GLfloat _w) { 6744 GLfloat _w) {
6745 static_cast<ValueType*>(cmd)->Init(_location, _x, _y, _z, _w); 6745 static_cast<ValueType*>(cmd)->Init(_location, _x, _y, _z, _w);
6746 return NextCmdAddress<ValueType>(cmd); 6746 return NextCmdAddress<ValueType>(cmd);
6747 } 6747 }
6748 6748
6749 gpu::CommandHeader header; 6749 gpu::CommandHeader header;
6750 uint32 location; 6750 int32 location;
6751 float x; 6751 float x;
6752 float y; 6752 float y;
6753 float z; 6753 float z;
6754 float w; 6754 float w;
6755 }; 6755 };
6756 6756
6757 COMPILE_ASSERT(sizeof(Uniform4f) == 24, 6757 COMPILE_ASSERT(sizeof(Uniform4f) == 24,
6758 Sizeof_Uniform4f_is_not_24); 6758 Sizeof_Uniform4f_is_not_24);
6759 COMPILE_ASSERT(offsetof(Uniform4f, header) == 0, 6759 COMPILE_ASSERT(offsetof(Uniform4f, header) == 0,
6760 OffsetOf_Uniform4f_header_not_0); 6760 OffsetOf_Uniform4f_header_not_0);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
6794 6794
6795 void* Set( 6795 void* Set(
6796 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, 6796 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id,
6797 uint32 _v_shm_offset) { 6797 uint32 _v_shm_offset) {
6798 static_cast<ValueType*>( 6798 static_cast<ValueType*>(
6799 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); 6799 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset);
6800 return NextCmdAddress<ValueType>(cmd); 6800 return NextCmdAddress<ValueType>(cmd);
6801 } 6801 }
6802 6802
6803 gpu::CommandHeader header; 6803 gpu::CommandHeader header;
6804 uint32 location; 6804 int32 location;
6805 uint32 count; 6805 int32 count;
6806 uint32 v_shm_id; 6806 uint32 v_shm_id;
6807 uint32 v_shm_offset; 6807 uint32 v_shm_offset;
6808 }; 6808 };
6809 6809
6810 COMPILE_ASSERT(sizeof(Uniform4fv) == 20, 6810 COMPILE_ASSERT(sizeof(Uniform4fv) == 20,
6811 Sizeof_Uniform4fv_is_not_20); 6811 Sizeof_Uniform4fv_is_not_20);
6812 COMPILE_ASSERT(offsetof(Uniform4fv, header) == 0, 6812 COMPILE_ASSERT(offsetof(Uniform4fv, header) == 0,
6813 OffsetOf_Uniform4fv_header_not_0); 6813 OffsetOf_Uniform4fv_header_not_0);
6814 COMPILE_ASSERT(offsetof(Uniform4fv, location) == 4, 6814 COMPILE_ASSERT(offsetof(Uniform4fv, location) == 4,
6815 OffsetOf_Uniform4fv_location_not_4); 6815 OffsetOf_Uniform4fv_location_not_4);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
6847 _v, ComputeDataSize(_count)); 6847 _v, ComputeDataSize(_count));
6848 } 6848 }
6849 6849
6850 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _v) { 6850 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _v) {
6851 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); 6851 static_cast<ValueType*>(cmd)->Init(_location, _count, _v);
6852 const uint32 size = ComputeSize(_count); 6852 const uint32 size = ComputeSize(_count);
6853 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); 6853 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
6854 } 6854 }
6855 6855
6856 gpu::CommandHeader header; 6856 gpu::CommandHeader header;
6857 uint32 location; 6857 int32 location;
6858 uint32 count; 6858 int32 count;
6859 }; 6859 };
6860 6860
6861 COMPILE_ASSERT(sizeof(Uniform4fvImmediate) == 12, 6861 COMPILE_ASSERT(sizeof(Uniform4fvImmediate) == 12,
6862 Sizeof_Uniform4fvImmediate_is_not_12); 6862 Sizeof_Uniform4fvImmediate_is_not_12);
6863 COMPILE_ASSERT(offsetof(Uniform4fvImmediate, header) == 0, 6863 COMPILE_ASSERT(offsetof(Uniform4fvImmediate, header) == 0,
6864 OffsetOf_Uniform4fvImmediate_header_not_0); 6864 OffsetOf_Uniform4fvImmediate_header_not_0);
6865 COMPILE_ASSERT(offsetof(Uniform4fvImmediate, location) == 4, 6865 COMPILE_ASSERT(offsetof(Uniform4fvImmediate, location) == 4,
6866 OffsetOf_Uniform4fvImmediate_location_not_4); 6866 OffsetOf_Uniform4fvImmediate_location_not_4);
6867 COMPILE_ASSERT(offsetof(Uniform4fvImmediate, count) == 8, 6867 COMPILE_ASSERT(offsetof(Uniform4fvImmediate, count) == 8,
6868 OffsetOf_Uniform4fvImmediate_count_not_8); 6868 OffsetOf_Uniform4fvImmediate_count_not_8);
(...skipping 20 matching lines...) Expand all
6889 w = _w; 6889 w = _w;
6890 } 6890 }
6891 6891
6892 void* Set( 6892 void* Set(
6893 void* cmd, GLint _location, GLint _x, GLint _y, GLint _z, GLint _w) { 6893 void* cmd, GLint _location, GLint _x, GLint _y, GLint _z, GLint _w) {
6894 static_cast<ValueType*>(cmd)->Init(_location, _x, _y, _z, _w); 6894 static_cast<ValueType*>(cmd)->Init(_location, _x, _y, _z, _w);
6895 return NextCmdAddress<ValueType>(cmd); 6895 return NextCmdAddress<ValueType>(cmd);
6896 } 6896 }
6897 6897
6898 gpu::CommandHeader header; 6898 gpu::CommandHeader header;
6899 uint32 location; 6899 int32 location;
6900 uint32 x; 6900 int32 x;
6901 uint32 y; 6901 int32 y;
6902 uint32 z; 6902 int32 z;
6903 uint32 w; 6903 int32 w;
6904 }; 6904 };
6905 6905
6906 COMPILE_ASSERT(sizeof(Uniform4i) == 24, 6906 COMPILE_ASSERT(sizeof(Uniform4i) == 24,
6907 Sizeof_Uniform4i_is_not_24); 6907 Sizeof_Uniform4i_is_not_24);
6908 COMPILE_ASSERT(offsetof(Uniform4i, header) == 0, 6908 COMPILE_ASSERT(offsetof(Uniform4i, header) == 0,
6909 OffsetOf_Uniform4i_header_not_0); 6909 OffsetOf_Uniform4i_header_not_0);
6910 COMPILE_ASSERT(offsetof(Uniform4i, location) == 4, 6910 COMPILE_ASSERT(offsetof(Uniform4i, location) == 4,
6911 OffsetOf_Uniform4i_location_not_4); 6911 OffsetOf_Uniform4i_location_not_4);
6912 COMPILE_ASSERT(offsetof(Uniform4i, x) == 8, 6912 COMPILE_ASSERT(offsetof(Uniform4i, x) == 8,
6913 OffsetOf_Uniform4i_x_not_8); 6913 OffsetOf_Uniform4i_x_not_8);
(...skipping 29 matching lines...) Expand all
6943 6943
6944 void* Set( 6944 void* Set(
6945 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, 6945 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id,
6946 uint32 _v_shm_offset) { 6946 uint32 _v_shm_offset) {
6947 static_cast<ValueType*>( 6947 static_cast<ValueType*>(
6948 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); 6948 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset);
6949 return NextCmdAddress<ValueType>(cmd); 6949 return NextCmdAddress<ValueType>(cmd);
6950 } 6950 }
6951 6951
6952 gpu::CommandHeader header; 6952 gpu::CommandHeader header;
6953 uint32 location; 6953 int32 location;
6954 uint32 count; 6954 int32 count;
6955 uint32 v_shm_id; 6955 uint32 v_shm_id;
6956 uint32 v_shm_offset; 6956 uint32 v_shm_offset;
6957 }; 6957 };
6958 6958
6959 COMPILE_ASSERT(sizeof(Uniform4iv) == 20, 6959 COMPILE_ASSERT(sizeof(Uniform4iv) == 20,
6960 Sizeof_Uniform4iv_is_not_20); 6960 Sizeof_Uniform4iv_is_not_20);
6961 COMPILE_ASSERT(offsetof(Uniform4iv, header) == 0, 6961 COMPILE_ASSERT(offsetof(Uniform4iv, header) == 0,
6962 OffsetOf_Uniform4iv_header_not_0); 6962 OffsetOf_Uniform4iv_header_not_0);
6963 COMPILE_ASSERT(offsetof(Uniform4iv, location) == 4, 6963 COMPILE_ASSERT(offsetof(Uniform4iv, location) == 4,
6964 OffsetOf_Uniform4iv_location_not_4); 6964 OffsetOf_Uniform4iv_location_not_4);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
6996 _v, ComputeDataSize(_count)); 6996 _v, ComputeDataSize(_count));
6997 } 6997 }
6998 6998
6999 void* Set(void* cmd, GLint _location, GLsizei _count, const GLint* _v) { 6999 void* Set(void* cmd, GLint _location, GLsizei _count, const GLint* _v) {
7000 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); 7000 static_cast<ValueType*>(cmd)->Init(_location, _count, _v);
7001 const uint32 size = ComputeSize(_count); 7001 const uint32 size = ComputeSize(_count);
7002 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); 7002 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
7003 } 7003 }
7004 7004
7005 gpu::CommandHeader header; 7005 gpu::CommandHeader header;
7006 uint32 location; 7006 int32 location;
7007 uint32 count; 7007 int32 count;
7008 }; 7008 };
7009 7009
7010 COMPILE_ASSERT(sizeof(Uniform4ivImmediate) == 12, 7010 COMPILE_ASSERT(sizeof(Uniform4ivImmediate) == 12,
7011 Sizeof_Uniform4ivImmediate_is_not_12); 7011 Sizeof_Uniform4ivImmediate_is_not_12);
7012 COMPILE_ASSERT(offsetof(Uniform4ivImmediate, header) == 0, 7012 COMPILE_ASSERT(offsetof(Uniform4ivImmediate, header) == 0,
7013 OffsetOf_Uniform4ivImmediate_header_not_0); 7013 OffsetOf_Uniform4ivImmediate_header_not_0);
7014 COMPILE_ASSERT(offsetof(Uniform4ivImmediate, location) == 4, 7014 COMPILE_ASSERT(offsetof(Uniform4ivImmediate, location) == 4,
7015 OffsetOf_Uniform4ivImmediate_location_not_4); 7015 OffsetOf_Uniform4ivImmediate_location_not_4);
7016 COMPILE_ASSERT(offsetof(Uniform4ivImmediate, count) == 8, 7016 COMPILE_ASSERT(offsetof(Uniform4ivImmediate, count) == 8,
7017 OffsetOf_Uniform4ivImmediate_count_not_8); 7017 OffsetOf_Uniform4ivImmediate_count_not_8);
(...skipping 25 matching lines...) Expand all
7043 void* Set( 7043 void* Set(
7044 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose, 7044 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose,
7045 uint32 _value_shm_id, uint32 _value_shm_offset) { 7045 uint32 _value_shm_id, uint32 _value_shm_offset) {
7046 static_cast<ValueType*>( 7046 static_cast<ValueType*>(
7047 cmd)->Init( 7047 cmd)->Init(
7048 _location, _count, _transpose, _value_shm_id, _value_shm_offset); 7048 _location, _count, _transpose, _value_shm_id, _value_shm_offset);
7049 return NextCmdAddress<ValueType>(cmd); 7049 return NextCmdAddress<ValueType>(cmd);
7050 } 7050 }
7051 7051
7052 gpu::CommandHeader header; 7052 gpu::CommandHeader header;
7053 uint32 location; 7053 int32 location;
7054 uint32 count; 7054 int32 count;
7055 uint32 transpose; 7055 uint32 transpose;
7056 uint32 value_shm_id; 7056 uint32 value_shm_id;
7057 uint32 value_shm_offset; 7057 uint32 value_shm_offset;
7058 }; 7058 };
7059 7059
7060 COMPILE_ASSERT(sizeof(UniformMatrix2fv) == 24, 7060 COMPILE_ASSERT(sizeof(UniformMatrix2fv) == 24,
7061 Sizeof_UniformMatrix2fv_is_not_24); 7061 Sizeof_UniformMatrix2fv_is_not_24);
7062 COMPILE_ASSERT(offsetof(UniformMatrix2fv, header) == 0, 7062 COMPILE_ASSERT(offsetof(UniformMatrix2fv, header) == 0,
7063 OffsetOf_UniformMatrix2fv_header_not_0); 7063 OffsetOf_UniformMatrix2fv_header_not_0);
7064 COMPILE_ASSERT(offsetof(UniformMatrix2fv, location) == 4, 7064 COMPILE_ASSERT(offsetof(UniformMatrix2fv, location) == 4,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
7104 7104
7105 void* Set( 7105 void* Set(
7106 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose, 7106 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose,
7107 const GLfloat* _value) { 7107 const GLfloat* _value) {
7108 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value); 7108 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value);
7109 const uint32 size = ComputeSize(_count); 7109 const uint32 size = ComputeSize(_count);
7110 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); 7110 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
7111 } 7111 }
7112 7112
7113 gpu::CommandHeader header; 7113 gpu::CommandHeader header;
7114 uint32 location; 7114 int32 location;
7115 uint32 count; 7115 int32 count;
7116 uint32 transpose; 7116 uint32 transpose;
7117 }; 7117 };
7118 7118
7119 COMPILE_ASSERT(sizeof(UniformMatrix2fvImmediate) == 16, 7119 COMPILE_ASSERT(sizeof(UniformMatrix2fvImmediate) == 16,
7120 Sizeof_UniformMatrix2fvImmediate_is_not_16); 7120 Sizeof_UniformMatrix2fvImmediate_is_not_16);
7121 COMPILE_ASSERT(offsetof(UniformMatrix2fvImmediate, header) == 0, 7121 COMPILE_ASSERT(offsetof(UniformMatrix2fvImmediate, header) == 0,
7122 OffsetOf_UniformMatrix2fvImmediate_header_not_0); 7122 OffsetOf_UniformMatrix2fvImmediate_header_not_0);
7123 COMPILE_ASSERT(offsetof(UniformMatrix2fvImmediate, location) == 4, 7123 COMPILE_ASSERT(offsetof(UniformMatrix2fvImmediate, location) == 4,
7124 OffsetOf_UniformMatrix2fvImmediate_location_not_4); 7124 OffsetOf_UniformMatrix2fvImmediate_location_not_4);
7125 COMPILE_ASSERT(offsetof(UniformMatrix2fvImmediate, count) == 8, 7125 COMPILE_ASSERT(offsetof(UniformMatrix2fvImmediate, count) == 8,
(...skipping 28 matching lines...) Expand all
7154 void* Set( 7154 void* Set(
7155 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose, 7155 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose,
7156 uint32 _value_shm_id, uint32 _value_shm_offset) { 7156 uint32 _value_shm_id, uint32 _value_shm_offset) {
7157 static_cast<ValueType*>( 7157 static_cast<ValueType*>(
7158 cmd)->Init( 7158 cmd)->Init(
7159 _location, _count, _transpose, _value_shm_id, _value_shm_offset); 7159 _location, _count, _transpose, _value_shm_id, _value_shm_offset);
7160 return NextCmdAddress<ValueType>(cmd); 7160 return NextCmdAddress<ValueType>(cmd);
7161 } 7161 }
7162 7162
7163 gpu::CommandHeader header; 7163 gpu::CommandHeader header;
7164 uint32 location; 7164 int32 location;
7165 uint32 count; 7165 int32 count;
7166 uint32 transpose; 7166 uint32 transpose;
7167 uint32 value_shm_id; 7167 uint32 value_shm_id;
7168 uint32 value_shm_offset; 7168 uint32 value_shm_offset;
7169 }; 7169 };
7170 7170
7171 COMPILE_ASSERT(sizeof(UniformMatrix3fv) == 24, 7171 COMPILE_ASSERT(sizeof(UniformMatrix3fv) == 24,
7172 Sizeof_UniformMatrix3fv_is_not_24); 7172 Sizeof_UniformMatrix3fv_is_not_24);
7173 COMPILE_ASSERT(offsetof(UniformMatrix3fv, header) == 0, 7173 COMPILE_ASSERT(offsetof(UniformMatrix3fv, header) == 0,
7174 OffsetOf_UniformMatrix3fv_header_not_0); 7174 OffsetOf_UniformMatrix3fv_header_not_0);
7175 COMPILE_ASSERT(offsetof(UniformMatrix3fv, location) == 4, 7175 COMPILE_ASSERT(offsetof(UniformMatrix3fv, location) == 4,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
7215 7215
7216 void* Set( 7216 void* Set(
7217 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose, 7217 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose,
7218 const GLfloat* _value) { 7218 const GLfloat* _value) {
7219 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value); 7219 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value);
7220 const uint32 size = ComputeSize(_count); 7220 const uint32 size = ComputeSize(_count);
7221 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); 7221 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
7222 } 7222 }
7223 7223
7224 gpu::CommandHeader header; 7224 gpu::CommandHeader header;
7225 uint32 location; 7225 int32 location;
7226 uint32 count; 7226 int32 count;
7227 uint32 transpose; 7227 uint32 transpose;
7228 }; 7228 };
7229 7229
7230 COMPILE_ASSERT(sizeof(UniformMatrix3fvImmediate) == 16, 7230 COMPILE_ASSERT(sizeof(UniformMatrix3fvImmediate) == 16,
7231 Sizeof_UniformMatrix3fvImmediate_is_not_16); 7231 Sizeof_UniformMatrix3fvImmediate_is_not_16);
7232 COMPILE_ASSERT(offsetof(UniformMatrix3fvImmediate, header) == 0, 7232 COMPILE_ASSERT(offsetof(UniformMatrix3fvImmediate, header) == 0,
7233 OffsetOf_UniformMatrix3fvImmediate_header_not_0); 7233 OffsetOf_UniformMatrix3fvImmediate_header_not_0);
7234 COMPILE_ASSERT(offsetof(UniformMatrix3fvImmediate, location) == 4, 7234 COMPILE_ASSERT(offsetof(UniformMatrix3fvImmediate, location) == 4,
7235 OffsetOf_UniformMatrix3fvImmediate_location_not_4); 7235 OffsetOf_UniformMatrix3fvImmediate_location_not_4);
7236 COMPILE_ASSERT(offsetof(UniformMatrix3fvImmediate, count) == 8, 7236 COMPILE_ASSERT(offsetof(UniformMatrix3fvImmediate, count) == 8,
(...skipping 28 matching lines...) Expand all
7265 void* Set( 7265 void* Set(
7266 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose, 7266 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose,
7267 uint32 _value_shm_id, uint32 _value_shm_offset) { 7267 uint32 _value_shm_id, uint32 _value_shm_offset) {
7268 static_cast<ValueType*>( 7268 static_cast<ValueType*>(
7269 cmd)->Init( 7269 cmd)->Init(
7270 _location, _count, _transpose, _value_shm_id, _value_shm_offset); 7270 _location, _count, _transpose, _value_shm_id, _value_shm_offset);
7271 return NextCmdAddress<ValueType>(cmd); 7271 return NextCmdAddress<ValueType>(cmd);
7272 } 7272 }
7273 7273
7274 gpu::CommandHeader header; 7274 gpu::CommandHeader header;
7275 uint32 location; 7275 int32 location;
7276 uint32 count; 7276 int32 count;
7277 uint32 transpose; 7277 uint32 transpose;
7278 uint32 value_shm_id; 7278 uint32 value_shm_id;
7279 uint32 value_shm_offset; 7279 uint32 value_shm_offset;
7280 }; 7280 };
7281 7281
7282 COMPILE_ASSERT(sizeof(UniformMatrix4fv) == 24, 7282 COMPILE_ASSERT(sizeof(UniformMatrix4fv) == 24,
7283 Sizeof_UniformMatrix4fv_is_not_24); 7283 Sizeof_UniformMatrix4fv_is_not_24);
7284 COMPILE_ASSERT(offsetof(UniformMatrix4fv, header) == 0, 7284 COMPILE_ASSERT(offsetof(UniformMatrix4fv, header) == 0,
7285 OffsetOf_UniformMatrix4fv_header_not_0); 7285 OffsetOf_UniformMatrix4fv_header_not_0);
7286 COMPILE_ASSERT(offsetof(UniformMatrix4fv, location) == 4, 7286 COMPILE_ASSERT(offsetof(UniformMatrix4fv, location) == 4,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
7326 7326
7327 void* Set( 7327 void* Set(
7328 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose, 7328 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose,
7329 const GLfloat* _value) { 7329 const GLfloat* _value) {
7330 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value); 7330 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value);
7331 const uint32 size = ComputeSize(_count); 7331 const uint32 size = ComputeSize(_count);
7332 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); 7332 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
7333 } 7333 }
7334 7334
7335 gpu::CommandHeader header; 7335 gpu::CommandHeader header;
7336 uint32 location; 7336 int32 location;
7337 uint32 count; 7337 int32 count;
7338 uint32 transpose; 7338 uint32 transpose;
7339 }; 7339 };
7340 7340
7341 COMPILE_ASSERT(sizeof(UniformMatrix4fvImmediate) == 16, 7341 COMPILE_ASSERT(sizeof(UniformMatrix4fvImmediate) == 16,
7342 Sizeof_UniformMatrix4fvImmediate_is_not_16); 7342 Sizeof_UniformMatrix4fvImmediate_is_not_16);
7343 COMPILE_ASSERT(offsetof(UniformMatrix4fvImmediate, header) == 0, 7343 COMPILE_ASSERT(offsetof(UniformMatrix4fvImmediate, header) == 0,
7344 OffsetOf_UniformMatrix4fvImmediate_header_not_0); 7344 OffsetOf_UniformMatrix4fvImmediate_header_not_0);
7345 COMPILE_ASSERT(offsetof(UniformMatrix4fvImmediate, location) == 4, 7345 COMPILE_ASSERT(offsetof(UniformMatrix4fvImmediate, location) == 4,
7346 OffsetOf_UniformMatrix4fvImmediate_location_not_4); 7346 OffsetOf_UniformMatrix4fvImmediate_location_not_4);
7347 COMPILE_ASSERT(offsetof(UniformMatrix4fvImmediate, count) == 8, 7347 COMPILE_ASSERT(offsetof(UniformMatrix4fvImmediate, count) == 8,
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
7975 void* Set( 7975 void* Set(
7976 void* cmd, GLuint _indx, GLint _size, GLenum _type, GLboolean _normalized, 7976 void* cmd, GLuint _indx, GLint _size, GLenum _type, GLboolean _normalized,
7977 GLsizei _stride, GLuint _offset) { 7977 GLsizei _stride, GLuint _offset) {
7978 static_cast<ValueType*>( 7978 static_cast<ValueType*>(
7979 cmd)->Init(_indx, _size, _type, _normalized, _stride, _offset); 7979 cmd)->Init(_indx, _size, _type, _normalized, _stride, _offset);
7980 return NextCmdAddress<ValueType>(cmd); 7980 return NextCmdAddress<ValueType>(cmd);
7981 } 7981 }
7982 7982
7983 gpu::CommandHeader header; 7983 gpu::CommandHeader header;
7984 uint32 indx; 7984 uint32 indx;
7985 uint32 size; 7985 int32 size;
7986 uint32 type; 7986 uint32 type;
7987 uint32 normalized; 7987 uint32 normalized;
7988 uint32 stride; 7988 int32 stride;
7989 uint32 offset; 7989 uint32 offset;
7990 }; 7990 };
7991 7991
7992 COMPILE_ASSERT(sizeof(VertexAttribPointer) == 28, 7992 COMPILE_ASSERT(sizeof(VertexAttribPointer) == 28,
7993 Sizeof_VertexAttribPointer_is_not_28); 7993 Sizeof_VertexAttribPointer_is_not_28);
7994 COMPILE_ASSERT(offsetof(VertexAttribPointer, header) == 0, 7994 COMPILE_ASSERT(offsetof(VertexAttribPointer, header) == 0,
7995 OffsetOf_VertexAttribPointer_header_not_0); 7995 OffsetOf_VertexAttribPointer_header_not_0);
7996 COMPILE_ASSERT(offsetof(VertexAttribPointer, indx) == 4, 7996 COMPILE_ASSERT(offsetof(VertexAttribPointer, indx) == 4,
7997 OffsetOf_VertexAttribPointer_indx_not_4); 7997 OffsetOf_VertexAttribPointer_indx_not_4);
7998 COMPILE_ASSERT(offsetof(VertexAttribPointer, size) == 8, 7998 COMPILE_ASSERT(offsetof(VertexAttribPointer, size) == 8,
(...skipping 27 matching lines...) Expand all
8026 width = _width; 8026 width = _width;
8027 height = _height; 8027 height = _height;
8028 } 8028 }
8029 8029
8030 void* Set(void* cmd, GLint _x, GLint _y, GLsizei _width, GLsizei _height) { 8030 void* Set(void* cmd, GLint _x, GLint _y, GLsizei _width, GLsizei _height) {
8031 static_cast<ValueType*>(cmd)->Init(_x, _y, _width, _height); 8031 static_cast<ValueType*>(cmd)->Init(_x, _y, _width, _height);
8032 return NextCmdAddress<ValueType>(cmd); 8032 return NextCmdAddress<ValueType>(cmd);
8033 } 8033 }
8034 8034
8035 gpu::CommandHeader header; 8035 gpu::CommandHeader header;
8036 uint32 x; 8036 int32 x;
8037 uint32 y; 8037 int32 y;
8038 uint32 width; 8038 int32 width;
8039 uint32 height; 8039 int32 height;
8040 }; 8040 };
8041 8041
8042 COMPILE_ASSERT(sizeof(Viewport) == 20, 8042 COMPILE_ASSERT(sizeof(Viewport) == 20,
8043 Sizeof_Viewport_is_not_20); 8043 Sizeof_Viewport_is_not_20);
8044 COMPILE_ASSERT(offsetof(Viewport, header) == 0, 8044 COMPILE_ASSERT(offsetof(Viewport, header) == 0,
8045 OffsetOf_Viewport_header_not_0); 8045 OffsetOf_Viewport_header_not_0);
8046 COMPILE_ASSERT(offsetof(Viewport, x) == 4, 8046 COMPILE_ASSERT(offsetof(Viewport, x) == 4,
8047 OffsetOf_Viewport_x_not_4); 8047 OffsetOf_Viewport_x_not_4);
8048 COMPILE_ASSERT(offsetof(Viewport, y) == 8, 8048 COMPILE_ASSERT(offsetof(Viewport, y) == 8,
8049 OffsetOf_Viewport_y_not_8); 8049 OffsetOf_Viewport_y_not_8);
(...skipping 27 matching lines...) Expand all
8077 gpu::CommandHeader header; 8077 gpu::CommandHeader header;
8078 }; 8078 };
8079 8079
8080 COMPILE_ASSERT(sizeof(SwapBuffers) == 4, 8080 COMPILE_ASSERT(sizeof(SwapBuffers) == 4,
8081 Sizeof_SwapBuffers_is_not_4); 8081 Sizeof_SwapBuffers_is_not_4);
8082 COMPILE_ASSERT(offsetof(SwapBuffers, header) == 0, 8082 COMPILE_ASSERT(offsetof(SwapBuffers, header) == 0,
8083 OffsetOf_SwapBuffers_header_not_0); 8083 OffsetOf_SwapBuffers_header_not_0);
8084 8084
8085 #pragma pack(pop) 8085 #pragma pack(pop)
8086 8086
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/cmd_buffer_helper_test.cc ('k') | gpu/command_buffer/common/gles2_cmd_format_test_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698