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

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

Issue 2263593003: Remove GenMailboxCHROMIUM command (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@autogen_create_and_consume
Patch Set: Created 4 years, 4 months 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 // 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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/common/gles2_cmd_ids_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698