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

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

Issue 782583003: List sync points to wait on in AsyncFlush message Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file is auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
(...skipping 9978 matching lines...) Expand 10 before | Expand all | Expand 10 after
9989 9989
9990 COMPILE_ASSERT(sizeof(LoseContextCHROMIUM) == 12, 9990 COMPILE_ASSERT(sizeof(LoseContextCHROMIUM) == 12,
9991 Sizeof_LoseContextCHROMIUM_is_not_12); 9991 Sizeof_LoseContextCHROMIUM_is_not_12);
9992 COMPILE_ASSERT(offsetof(LoseContextCHROMIUM, header) == 0, 9992 COMPILE_ASSERT(offsetof(LoseContextCHROMIUM, header) == 0,
9993 OffsetOf_LoseContextCHROMIUM_header_not_0); 9993 OffsetOf_LoseContextCHROMIUM_header_not_0);
9994 COMPILE_ASSERT(offsetof(LoseContextCHROMIUM, current) == 4, 9994 COMPILE_ASSERT(offsetof(LoseContextCHROMIUM, current) == 4,
9995 OffsetOf_LoseContextCHROMIUM_current_not_4); 9995 OffsetOf_LoseContextCHROMIUM_current_not_4);
9996 COMPILE_ASSERT(offsetof(LoseContextCHROMIUM, other) == 8, 9996 COMPILE_ASSERT(offsetof(LoseContextCHROMIUM, other) == 8,
9997 OffsetOf_LoseContextCHROMIUM_other_not_8); 9997 OffsetOf_LoseContextCHROMIUM_other_not_8);
9998 9998
9999 struct WaitSyncPointCHROMIUM {
10000 typedef WaitSyncPointCHROMIUM ValueType;
10001 static const CommandId kCmdId = kWaitSyncPointCHROMIUM;
10002 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
10003 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1);
10004
10005 static uint32_t ComputeSize() {
10006 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
10007 }
10008
10009 void SetHeader() { header.SetCmd<ValueType>(); }
10010
10011 void Init(GLuint _sync_point) {
10012 SetHeader();
10013 sync_point = _sync_point;
10014 }
10015
10016 void* Set(void* cmd, GLuint _sync_point) {
10017 static_cast<ValueType*>(cmd)->Init(_sync_point);
10018 return NextCmdAddress<ValueType>(cmd);
10019 }
10020
10021 gpu::CommandHeader header;
10022 uint32_t sync_point;
10023 };
10024
10025 COMPILE_ASSERT(sizeof(WaitSyncPointCHROMIUM) == 8,
10026 Sizeof_WaitSyncPointCHROMIUM_is_not_8);
10027 COMPILE_ASSERT(offsetof(WaitSyncPointCHROMIUM, header) == 0,
10028 OffsetOf_WaitSyncPointCHROMIUM_header_not_0);
10029 COMPILE_ASSERT(offsetof(WaitSyncPointCHROMIUM, sync_point) == 4,
10030 OffsetOf_WaitSyncPointCHROMIUM_sync_point_not_4);
10031
10032 struct DrawBuffersEXTImmediate { 9999 struct DrawBuffersEXTImmediate {
10033 typedef DrawBuffersEXTImmediate ValueType; 10000 typedef DrawBuffersEXTImmediate ValueType;
10034 static const CommandId kCmdId = kDrawBuffersEXTImmediate; 10001 static const CommandId kCmdId = kDrawBuffersEXTImmediate;
10035 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; 10002 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN;
10036 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); 10003 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
10037 10004
10038 static uint32_t ComputeDataSize(GLsizei count) { 10005 static uint32_t ComputeDataSize(GLsizei count) {
10039 return static_cast<uint32_t>(sizeof(GLenum) * 1 * count); // NOLINT 10006 return static_cast<uint32_t>(sizeof(GLenum) * 1 * count); // NOLINT
10040 } 10007 }
10041 10008
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
10288 } 10255 }
10289 10256
10290 gpu::CommandHeader header; 10257 gpu::CommandHeader header;
10291 }; 10258 };
10292 10259
10293 COMPILE_ASSERT(sizeof(BlendBarrierKHR) == 4, Sizeof_BlendBarrierKHR_is_not_4); 10260 COMPILE_ASSERT(sizeof(BlendBarrierKHR) == 4, Sizeof_BlendBarrierKHR_is_not_4);
10294 COMPILE_ASSERT(offsetof(BlendBarrierKHR, header) == 0, 10261 COMPILE_ASSERT(offsetof(BlendBarrierKHR, header) == 0,
10295 OffsetOf_BlendBarrierKHR_header_not_0); 10262 OffsetOf_BlendBarrierKHR_header_not_0);
10296 10263
10297 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 10264 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/command_buffer_mock.h ('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