| 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 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 9872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9883 static uint32 ComputeSize() { | 9883 static uint32 ComputeSize() { |
| 9884 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 9884 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 9885 } | 9885 } |
| 9886 | 9886 |
| 9887 void SetHeader() { | 9887 void SetHeader() { |
| 9888 header.SetCmd<ValueType>(); | 9888 header.SetCmd<ValueType>(); |
| 9889 } | 9889 } |
| 9890 | 9890 |
| 9891 void Init( | 9891 void Init( |
| 9892 GLenum _target, GLenum _source_id, GLenum _dest_id, GLint _level, | 9892 GLenum _target, GLenum _source_id, GLenum _dest_id, GLint _level, |
| 9893 GLint _internalformat) { | 9893 GLint _internalformat, GLenum _dest_type) { |
| 9894 SetHeader(); | 9894 SetHeader(); |
| 9895 target = _target; | 9895 target = _target; |
| 9896 source_id = _source_id; | 9896 source_id = _source_id; |
| 9897 dest_id = _dest_id; | 9897 dest_id = _dest_id; |
| 9898 level = _level; | 9898 level = _level; |
| 9899 internalformat = _internalformat; | 9899 internalformat = _internalformat; |
| 9900 dest_type = _dest_type; |
| 9900 } | 9901 } |
| 9901 | 9902 |
| 9902 void* Set( | 9903 void* Set( |
| 9903 void* cmd, GLenum _target, GLenum _source_id, GLenum _dest_id, | 9904 void* cmd, GLenum _target, GLenum _source_id, GLenum _dest_id, |
| 9904 GLint _level, GLint _internalformat) { | 9905 GLint _level, GLint _internalformat, GLenum _dest_type) { |
| 9905 static_cast<ValueType*>( | 9906 static_cast<ValueType*>( |
| 9906 cmd)->Init(_target, _source_id, _dest_id, _level, _internalformat); | 9907 cmd)->Init( |
| 9908 _target, _source_id, _dest_id, _level, _internalformat, |
| 9909 _dest_type); |
| 9907 return NextCmdAddress<ValueType>(cmd); | 9910 return NextCmdAddress<ValueType>(cmd); |
| 9908 } | 9911 } |
| 9909 | 9912 |
| 9910 gpu::CommandHeader header; | 9913 gpu::CommandHeader header; |
| 9911 uint32 target; | 9914 uint32 target; |
| 9912 uint32 source_id; | 9915 uint32 source_id; |
| 9913 uint32 dest_id; | 9916 uint32 dest_id; |
| 9914 int32 level; | 9917 int32 level; |
| 9915 int32 internalformat; | 9918 int32 internalformat; |
| 9919 uint32 dest_type; |
| 9916 }; | 9920 }; |
| 9917 | 9921 |
| 9918 COMPILE_ASSERT(sizeof(CopyTextureCHROMIUM) == 24, | 9922 COMPILE_ASSERT(sizeof(CopyTextureCHROMIUM) == 28, |
| 9919 Sizeof_CopyTextureCHROMIUM_is_not_24); | 9923 Sizeof_CopyTextureCHROMIUM_is_not_28); |
| 9920 COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, header) == 0, | 9924 COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, header) == 0, |
| 9921 OffsetOf_CopyTextureCHROMIUM_header_not_0); | 9925 OffsetOf_CopyTextureCHROMIUM_header_not_0); |
| 9922 COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, target) == 4, | 9926 COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, target) == 4, |
| 9923 OffsetOf_CopyTextureCHROMIUM_target_not_4); | 9927 OffsetOf_CopyTextureCHROMIUM_target_not_4); |
| 9924 COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, source_id) == 8, | 9928 COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, source_id) == 8, |
| 9925 OffsetOf_CopyTextureCHROMIUM_source_id_not_8); | 9929 OffsetOf_CopyTextureCHROMIUM_source_id_not_8); |
| 9926 COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, dest_id) == 12, | 9930 COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, dest_id) == 12, |
| 9927 OffsetOf_CopyTextureCHROMIUM_dest_id_not_12); | 9931 OffsetOf_CopyTextureCHROMIUM_dest_id_not_12); |
| 9928 COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, level) == 16, | 9932 COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, level) == 16, |
| 9929 OffsetOf_CopyTextureCHROMIUM_level_not_16); | 9933 OffsetOf_CopyTextureCHROMIUM_level_not_16); |
| 9930 COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, internalformat) == 20, | 9934 COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, internalformat) == 20, |
| 9931 OffsetOf_CopyTextureCHROMIUM_internalformat_not_20); | 9935 OffsetOf_CopyTextureCHROMIUM_internalformat_not_20); |
| 9936 COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, dest_type) == 24, |
| 9937 OffsetOf_CopyTextureCHROMIUM_dest_type_not_24); |
| 9932 | 9938 |
| 9933 struct DrawArraysInstancedANGLE { | 9939 struct DrawArraysInstancedANGLE { |
| 9934 typedef DrawArraysInstancedANGLE ValueType; | 9940 typedef DrawArraysInstancedANGLE ValueType; |
| 9935 static const CommandId kCmdId = kDrawArraysInstancedANGLE; | 9941 static const CommandId kCmdId = kDrawArraysInstancedANGLE; |
| 9936 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 9942 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9937 | 9943 |
| 9938 static uint32 ComputeSize() { | 9944 static uint32 ComputeSize() { |
| 9939 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 9945 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 9940 } | 9946 } |
| 9941 | 9947 |
| (...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11019 COMPILE_ASSERT(sizeof(DrawBuffersEXTImmediate) == 8, | 11025 COMPILE_ASSERT(sizeof(DrawBuffersEXTImmediate) == 8, |
| 11020 Sizeof_DrawBuffersEXTImmediate_is_not_8); | 11026 Sizeof_DrawBuffersEXTImmediate_is_not_8); |
| 11021 COMPILE_ASSERT(offsetof(DrawBuffersEXTImmediate, header) == 0, | 11027 COMPILE_ASSERT(offsetof(DrawBuffersEXTImmediate, header) == 0, |
| 11022 OffsetOf_DrawBuffersEXTImmediate_header_not_0); | 11028 OffsetOf_DrawBuffersEXTImmediate_header_not_0); |
| 11023 COMPILE_ASSERT(offsetof(DrawBuffersEXTImmediate, count) == 4, | 11029 COMPILE_ASSERT(offsetof(DrawBuffersEXTImmediate, count) == 4, |
| 11024 OffsetOf_DrawBuffersEXTImmediate_count_not_4); | 11030 OffsetOf_DrawBuffersEXTImmediate_count_not_4); |
| 11025 | 11031 |
| 11026 | 11032 |
| 11027 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 11033 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| 11028 | 11034 |
| OLD | NEW |