| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file defines the GLES2 command buffer commands. | 5 // This file defines the GLES2 command buffer commands. |
| 6 | 6 |
| 7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
| 8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
| 9 | 9 |
| 10 | 10 |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 | 303 |
| 304 static_assert(sizeof(UniformBlocksHeader) == 4, | 304 static_assert(sizeof(UniformBlocksHeader) == 4, |
| 305 "size of UniformBlocksHeader should be 4"); | 305 "size of UniformBlocksHeader should be 4"); |
| 306 static_assert(offsetof(UniformBlocksHeader, num_uniform_blocks) == 0, | 306 static_assert(offsetof(UniformBlocksHeader, num_uniform_blocks) == 0, |
| 307 "offset of UniformBlocksHeader.num_uniform_blocks should be 0"); | 307 "offset of UniformBlocksHeader.num_uniform_blocks should be 0"); |
| 308 | 308 |
| 309 namespace cmds { | 309 namespace cmds { |
| 310 | 310 |
| 311 #include "../common/gles2_cmd_format_autogen.h" | 311 #include "../common/gles2_cmd_format_autogen.h" |
| 312 | 312 |
| 313 // These are hand written commands. | |
| 314 // TODO(gman): Attempt to make these auto-generated. | |
| 315 | |
| 316 struct GenMailboxCHROMIUM { | |
| 317 typedef GenMailboxCHROMIUM ValueType; | |
| 318 static const CommandId kCmdId = kGenMailboxCHROMIUM; | |
| 319 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | |
| 320 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | |
| 321 CommandHeader header; | |
| 322 }; | |
| 323 | |
| 324 #pragma pack(pop) | 313 #pragma pack(pop) |
| 325 | 314 |
| 326 } // namespace cmd | 315 } // namespace cmd |
| 327 } // namespace gles2 | 316 } // namespace gles2 |
| 328 } // namespace gpu | 317 } // namespace gpu |
| 329 | 318 |
| 330 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 319 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
| OLD | NEW |