OLD | NEW |
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 12775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12786 static_assert(offsetof(VertexAttribDivisorANGLE, divisor) == 8, | 12786 static_assert(offsetof(VertexAttribDivisorANGLE, divisor) == 8, |
12787 "offset of VertexAttribDivisorANGLE divisor should be 8"); | 12787 "offset of VertexAttribDivisorANGLE divisor should be 8"); |
12788 | 12788 |
12789 struct ProduceTextureCHROMIUMImmediate { | 12789 struct ProduceTextureCHROMIUMImmediate { |
12790 typedef ProduceTextureCHROMIUMImmediate ValueType; | 12790 typedef ProduceTextureCHROMIUMImmediate ValueType; |
12791 static const CommandId kCmdId = kProduceTextureCHROMIUMImmediate; | 12791 static const CommandId kCmdId = kProduceTextureCHROMIUMImmediate; |
12792 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 12792 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
12793 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 12793 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
12794 | 12794 |
12795 static uint32_t ComputeDataSize() { | 12795 static uint32_t ComputeDataSize() { |
12796 return static_cast<uint32_t>(sizeof(GLbyte) * 64); | 12796 return static_cast<uint32_t>(sizeof(GLbyte) * 16); |
12797 } | 12797 } |
12798 | 12798 |
12799 static uint32_t ComputeSize() { | 12799 static uint32_t ComputeSize() { |
12800 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); | 12800 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); |
12801 } | 12801 } |
12802 | 12802 |
12803 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } | 12803 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } |
12804 | 12804 |
12805 void Init(GLenum _target, const GLbyte* _mailbox) { | 12805 void Init(GLenum _target, const GLbyte* _mailbox) { |
12806 SetHeader(); | 12806 SetHeader(); |
(...skipping 18 matching lines...) Expand all Loading... |
12825 static_assert(offsetof(ProduceTextureCHROMIUMImmediate, target) == 4, | 12825 static_assert(offsetof(ProduceTextureCHROMIUMImmediate, target) == 4, |
12826 "offset of ProduceTextureCHROMIUMImmediate target should be 4"); | 12826 "offset of ProduceTextureCHROMIUMImmediate target should be 4"); |
12827 | 12827 |
12828 struct ProduceTextureDirectCHROMIUMImmediate { | 12828 struct ProduceTextureDirectCHROMIUMImmediate { |
12829 typedef ProduceTextureDirectCHROMIUMImmediate ValueType; | 12829 typedef ProduceTextureDirectCHROMIUMImmediate ValueType; |
12830 static const CommandId kCmdId = kProduceTextureDirectCHROMIUMImmediate; | 12830 static const CommandId kCmdId = kProduceTextureDirectCHROMIUMImmediate; |
12831 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 12831 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
12832 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 12832 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
12833 | 12833 |
12834 static uint32_t ComputeDataSize() { | 12834 static uint32_t ComputeDataSize() { |
12835 return static_cast<uint32_t>(sizeof(GLbyte) * 64); | 12835 return static_cast<uint32_t>(sizeof(GLbyte) * 16); |
12836 } | 12836 } |
12837 | 12837 |
12838 static uint32_t ComputeSize() { | 12838 static uint32_t ComputeSize() { |
12839 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); | 12839 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); |
12840 } | 12840 } |
12841 | 12841 |
12842 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } | 12842 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } |
12843 | 12843 |
12844 void Init(GLuint _texture, GLenum _target, const GLbyte* _mailbox) { | 12844 void Init(GLuint _texture, GLenum _target, const GLbyte* _mailbox) { |
12845 SetHeader(); | 12845 SetHeader(); |
(...skipping 28 matching lines...) Expand all Loading... |
12874 offsetof(ProduceTextureDirectCHROMIUMImmediate, target) == 8, | 12874 offsetof(ProduceTextureDirectCHROMIUMImmediate, target) == 8, |
12875 "offset of ProduceTextureDirectCHROMIUMImmediate target should be 8"); | 12875 "offset of ProduceTextureDirectCHROMIUMImmediate target should be 8"); |
12876 | 12876 |
12877 struct ConsumeTextureCHROMIUMImmediate { | 12877 struct ConsumeTextureCHROMIUMImmediate { |
12878 typedef ConsumeTextureCHROMIUMImmediate ValueType; | 12878 typedef ConsumeTextureCHROMIUMImmediate ValueType; |
12879 static const CommandId kCmdId = kConsumeTextureCHROMIUMImmediate; | 12879 static const CommandId kCmdId = kConsumeTextureCHROMIUMImmediate; |
12880 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 12880 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
12881 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 12881 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
12882 | 12882 |
12883 static uint32_t ComputeDataSize() { | 12883 static uint32_t ComputeDataSize() { |
12884 return static_cast<uint32_t>(sizeof(GLbyte) * 64); | 12884 return static_cast<uint32_t>(sizeof(GLbyte) * 16); |
12885 } | 12885 } |
12886 | 12886 |
12887 static uint32_t ComputeSize() { | 12887 static uint32_t ComputeSize() { |
12888 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); | 12888 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); |
12889 } | 12889 } |
12890 | 12890 |
12891 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } | 12891 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } |
12892 | 12892 |
12893 void Init(GLenum _target, const GLbyte* _mailbox) { | 12893 void Init(GLenum _target, const GLbyte* _mailbox) { |
12894 SetHeader(); | 12894 SetHeader(); |
(...skipping 18 matching lines...) Expand all Loading... |
12913 static_assert(offsetof(ConsumeTextureCHROMIUMImmediate, target) == 4, | 12913 static_assert(offsetof(ConsumeTextureCHROMIUMImmediate, target) == 4, |
12914 "offset of ConsumeTextureCHROMIUMImmediate target should be 4"); | 12914 "offset of ConsumeTextureCHROMIUMImmediate target should be 4"); |
12915 | 12915 |
12916 struct CreateAndConsumeTextureINTERNALImmediate { | 12916 struct CreateAndConsumeTextureINTERNALImmediate { |
12917 typedef CreateAndConsumeTextureINTERNALImmediate ValueType; | 12917 typedef CreateAndConsumeTextureINTERNALImmediate ValueType; |
12918 static const CommandId kCmdId = kCreateAndConsumeTextureINTERNALImmediate; | 12918 static const CommandId kCmdId = kCreateAndConsumeTextureINTERNALImmediate; |
12919 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 12919 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
12920 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 12920 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
12921 | 12921 |
12922 static uint32_t ComputeDataSize() { | 12922 static uint32_t ComputeDataSize() { |
12923 return static_cast<uint32_t>(sizeof(GLbyte) * 64); | 12923 return static_cast<uint32_t>(sizeof(GLbyte) * 16); |
12924 } | 12924 } |
12925 | 12925 |
12926 static uint32_t ComputeSize() { | 12926 static uint32_t ComputeSize() { |
12927 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); | 12927 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); |
12928 } | 12928 } |
12929 | 12929 |
12930 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } | 12930 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } |
12931 | 12931 |
12932 void Init(GLenum _target, GLuint _texture, const GLbyte* _mailbox) { | 12932 void Init(GLenum _target, GLuint _texture, const GLbyte* _mailbox) { |
12933 SetHeader(); | 12933 SetHeader(); |
(...skipping 2658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15592 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, x) == 4, | 15592 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, x) == 4, |
15593 "offset of SwapBuffersWithDamageCHROMIUM x should be 4"); | 15593 "offset of SwapBuffersWithDamageCHROMIUM x should be 4"); |
15594 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, y) == 8, | 15594 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, y) == 8, |
15595 "offset of SwapBuffersWithDamageCHROMIUM y should be 8"); | 15595 "offset of SwapBuffersWithDamageCHROMIUM y should be 8"); |
15596 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, width) == 12, | 15596 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, width) == 12, |
15597 "offset of SwapBuffersWithDamageCHROMIUM width should be 12"); | 15597 "offset of SwapBuffersWithDamageCHROMIUM width should be 12"); |
15598 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, height) == 16, | 15598 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, height) == 16, |
15599 "offset of SwapBuffersWithDamageCHROMIUM height should be 16"); | 15599 "offset of SwapBuffersWithDamageCHROMIUM height should be 16"); |
15600 | 15600 |
15601 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15601 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |