| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // DO NOT EDIT! | 7 // DO NOT EDIT! |
| 8 | 8 |
| 9 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 9 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| 10 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 10 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| (...skipping 8895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8906 uint32 bucket_id; | 8906 uint32 bucket_id; |
| 8907 }; | 8907 }; |
| 8908 | 8908 |
| 8909 COMPILE_ASSERT(sizeof(RequestExtensionCHROMIUM) == 8, | 8909 COMPILE_ASSERT(sizeof(RequestExtensionCHROMIUM) == 8, |
| 8910 Sizeof_RequestExtensionCHROMIUM_is_not_8); | 8910 Sizeof_RequestExtensionCHROMIUM_is_not_8); |
| 8911 COMPILE_ASSERT(offsetof(RequestExtensionCHROMIUM, header) == 0, | 8911 COMPILE_ASSERT(offsetof(RequestExtensionCHROMIUM, header) == 0, |
| 8912 OffsetOf_RequestExtensionCHROMIUM_header_not_0); | 8912 OffsetOf_RequestExtensionCHROMIUM_header_not_0); |
| 8913 COMPILE_ASSERT(offsetof(RequestExtensionCHROMIUM, bucket_id) == 4, | 8913 COMPILE_ASSERT(offsetof(RequestExtensionCHROMIUM, bucket_id) == 4, |
| 8914 OffsetOf_RequestExtensionCHROMIUM_bucket_id_not_4); | 8914 OffsetOf_RequestExtensionCHROMIUM_bucket_id_not_4); |
| 8915 | 8915 |
| 8916 struct SetLatchCHROMIUM { |
| 8917 typedef SetLatchCHROMIUM ValueType; |
| 8918 static const CommandId kCmdId = kSetLatchCHROMIUM; |
| 8919 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8920 |
| 8921 static uint32 ComputeSize() { |
| 8922 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 8923 } |
| 8924 |
| 8925 void SetHeader() { |
| 8926 header.SetCmd<ValueType>(); |
| 8927 } |
| 8928 |
| 8929 void Init(GLuint _latch_id) { |
| 8930 SetHeader(); |
| 8931 latch_id = _latch_id; |
| 8932 } |
| 8933 |
| 8934 void* Set(void* cmd, GLuint _latch_id) { |
| 8935 static_cast<ValueType*>(cmd)->Init(_latch_id); |
| 8936 return NextCmdAddress<ValueType>(cmd); |
| 8937 } |
| 8938 |
| 8939 gpu::CommandHeader header; |
| 8940 uint32 latch_id; |
| 8941 }; |
| 8942 |
| 8943 COMPILE_ASSERT(sizeof(SetLatchCHROMIUM) == 8, |
| 8944 Sizeof_SetLatchCHROMIUM_is_not_8); |
| 8945 COMPILE_ASSERT(offsetof(SetLatchCHROMIUM, header) == 0, |
| 8946 OffsetOf_SetLatchCHROMIUM_header_not_0); |
| 8947 COMPILE_ASSERT(offsetof(SetLatchCHROMIUM, latch_id) == 4, |
| 8948 OffsetOf_SetLatchCHROMIUM_latch_id_not_4); |
| 8949 |
| 8950 struct WaitLatchCHROMIUM { |
| 8951 typedef WaitLatchCHROMIUM ValueType; |
| 8952 static const CommandId kCmdId = kWaitLatchCHROMIUM; |
| 8953 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8954 |
| 8955 static uint32 ComputeSize() { |
| 8956 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 8957 } |
| 8958 |
| 8959 void SetHeader() { |
| 8960 header.SetCmd<ValueType>(); |
| 8961 } |
| 8962 |
| 8963 void Init(GLuint _latch_id) { |
| 8964 SetHeader(); |
| 8965 latch_id = _latch_id; |
| 8966 } |
| 8967 |
| 8968 void* Set(void* cmd, GLuint _latch_id) { |
| 8969 static_cast<ValueType*>(cmd)->Init(_latch_id); |
| 8970 return NextCmdAddress<ValueType>(cmd); |
| 8971 } |
| 8972 |
| 8973 gpu::CommandHeader header; |
| 8974 uint32 latch_id; |
| 8975 }; |
| 8976 |
| 8977 COMPILE_ASSERT(sizeof(WaitLatchCHROMIUM) == 8, |
| 8978 Sizeof_WaitLatchCHROMIUM_is_not_8); |
| 8979 COMPILE_ASSERT(offsetof(WaitLatchCHROMIUM, header) == 0, |
| 8980 OffsetOf_WaitLatchCHROMIUM_header_not_0); |
| 8981 COMPILE_ASSERT(offsetof(WaitLatchCHROMIUM, latch_id) == 4, |
| 8982 OffsetOf_WaitLatchCHROMIUM_latch_id_not_4); |
| 8983 |
| 8916 struct SetSurfaceCHROMIUM { | 8984 struct SetSurfaceCHROMIUM { |
| 8917 typedef SetSurfaceCHROMIUM ValueType; | 8985 typedef SetSurfaceCHROMIUM ValueType; |
| 8918 static const CommandId kCmdId = kSetSurfaceCHROMIUM; | 8986 static const CommandId kCmdId = kSetSurfaceCHROMIUM; |
| 8919 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8987 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8920 | 8988 |
| 8921 static uint32 ComputeSize() { | 8989 static uint32 ComputeSize() { |
| 8922 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 8990 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 8923 } | 8991 } |
| 8924 | 8992 |
| 8925 void SetHeader() { | 8993 void SetHeader() { |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9055 COMPILE_ASSERT(offsetof(GetProgramInfoCHROMIUM::Result, link_status) == 0, | 9123 COMPILE_ASSERT(offsetof(GetProgramInfoCHROMIUM::Result, link_status) == 0, |
| 9056 OffsetOf_GetProgramInfoCHROMIUM_Result_link_status_not_0); | 9124 OffsetOf_GetProgramInfoCHROMIUM_Result_link_status_not_0); |
| 9057 COMPILE_ASSERT(offsetof(GetProgramInfoCHROMIUM::Result, num_attribs) == 4, | 9125 COMPILE_ASSERT(offsetof(GetProgramInfoCHROMIUM::Result, num_attribs) == 4, |
| 9058 OffsetOf_GetProgramInfoCHROMIUM_Result_num_attribs_not_4); | 9126 OffsetOf_GetProgramInfoCHROMIUM_Result_num_attribs_not_4); |
| 9059 COMPILE_ASSERT(offsetof(GetProgramInfoCHROMIUM::Result, num_uniforms) == 8, | 9127 COMPILE_ASSERT(offsetof(GetProgramInfoCHROMIUM::Result, num_uniforms) == 8, |
| 9060 OffsetOf_GetProgramInfoCHROMIUM_Result_num_uniforms_not_8); | 9128 OffsetOf_GetProgramInfoCHROMIUM_Result_num_uniforms_not_8); |
| 9061 | 9129 |
| 9062 | 9130 |
| 9063 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 9131 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| 9064 | 9132 |
| OLD | NEW |