| 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 13876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13887 } | 13887 } |
| 13888 | 13888 |
| 13889 void SetHeader() { header.SetCmd<ValueType>(); } | 13889 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13890 | 13890 |
| 13891 void Init(GLuint _contents_texture_id, | 13891 void Init(GLuint _contents_texture_id, |
| 13892 GLfloat _opacity, | 13892 GLfloat _opacity, |
| 13893 GLuint _background_color, | 13893 GLuint _background_color, |
| 13894 GLuint _edge_aa_mask, | 13894 GLuint _edge_aa_mask, |
| 13895 GLboolean _is_clipped, | 13895 GLboolean _is_clipped, |
| 13896 GLint _sorting_context_id, | 13896 GLint _sorting_context_id, |
| 13897 GLuint _filter, |
| 13897 GLuint _shm_id, | 13898 GLuint _shm_id, |
| 13898 GLuint _shm_offset) { | 13899 GLuint _shm_offset) { |
| 13899 SetHeader(); | 13900 SetHeader(); |
| 13900 contents_texture_id = _contents_texture_id; | 13901 contents_texture_id = _contents_texture_id; |
| 13901 opacity = _opacity; | 13902 opacity = _opacity; |
| 13902 background_color = _background_color; | 13903 background_color = _background_color; |
| 13903 edge_aa_mask = _edge_aa_mask; | 13904 edge_aa_mask = _edge_aa_mask; |
| 13904 is_clipped = _is_clipped; | 13905 is_clipped = _is_clipped; |
| 13905 sorting_context_id = _sorting_context_id; | 13906 sorting_context_id = _sorting_context_id; |
| 13907 filter = _filter; |
| 13906 shm_id = _shm_id; | 13908 shm_id = _shm_id; |
| 13907 shm_offset = _shm_offset; | 13909 shm_offset = _shm_offset; |
| 13908 } | 13910 } |
| 13909 | 13911 |
| 13910 void* Set(void* cmd, | 13912 void* Set(void* cmd, |
| 13911 GLuint _contents_texture_id, | 13913 GLuint _contents_texture_id, |
| 13912 GLfloat _opacity, | 13914 GLfloat _opacity, |
| 13913 GLuint _background_color, | 13915 GLuint _background_color, |
| 13914 GLuint _edge_aa_mask, | 13916 GLuint _edge_aa_mask, |
| 13915 GLboolean _is_clipped, | 13917 GLboolean _is_clipped, |
| 13916 GLint _sorting_context_id, | 13918 GLint _sorting_context_id, |
| 13919 GLuint _filter, |
| 13917 GLuint _shm_id, | 13920 GLuint _shm_id, |
| 13918 GLuint _shm_offset) { | 13921 GLuint _shm_offset) { |
| 13919 static_cast<ValueType*>(cmd)->Init( | 13922 static_cast<ValueType*>(cmd)->Init( |
| 13920 _contents_texture_id, _opacity, _background_color, _edge_aa_mask, | 13923 _contents_texture_id, _opacity, _background_color, _edge_aa_mask, |
| 13921 _is_clipped, _sorting_context_id, _shm_id, _shm_offset); | 13924 _is_clipped, _sorting_context_id, _filter, _shm_id, _shm_offset); |
| 13922 return NextCmdAddress<ValueType>(cmd); | 13925 return NextCmdAddress<ValueType>(cmd); |
| 13923 } | 13926 } |
| 13924 | 13927 |
| 13925 gpu::CommandHeader header; | 13928 gpu::CommandHeader header; |
| 13926 uint32_t contents_texture_id; | 13929 uint32_t contents_texture_id; |
| 13927 float opacity; | 13930 float opacity; |
| 13928 uint32_t background_color; | 13931 uint32_t background_color; |
| 13929 uint32_t edge_aa_mask; | 13932 uint32_t edge_aa_mask; |
| 13930 uint32_t is_clipped; | 13933 uint32_t is_clipped; |
| 13931 int32_t sorting_context_id; | 13934 int32_t sorting_context_id; |
| 13935 uint32_t filter; |
| 13932 uint32_t shm_id; | 13936 uint32_t shm_id; |
| 13933 uint32_t shm_offset; | 13937 uint32_t shm_offset; |
| 13934 }; | 13938 }; |
| 13935 | 13939 |
| 13936 static_assert(sizeof(ScheduleCALayerCHROMIUM) == 36, | 13940 static_assert(sizeof(ScheduleCALayerCHROMIUM) == 40, |
| 13937 "size of ScheduleCALayerCHROMIUM should be 36"); | 13941 "size of ScheduleCALayerCHROMIUM should be 40"); |
| 13938 static_assert(offsetof(ScheduleCALayerCHROMIUM, header) == 0, | 13942 static_assert(offsetof(ScheduleCALayerCHROMIUM, header) == 0, |
| 13939 "offset of ScheduleCALayerCHROMIUM header should be 0"); | 13943 "offset of ScheduleCALayerCHROMIUM header should be 0"); |
| 13940 static_assert( | 13944 static_assert( |
| 13941 offsetof(ScheduleCALayerCHROMIUM, contents_texture_id) == 4, | 13945 offsetof(ScheduleCALayerCHROMIUM, contents_texture_id) == 4, |
| 13942 "offset of ScheduleCALayerCHROMIUM contents_texture_id should be 4"); | 13946 "offset of ScheduleCALayerCHROMIUM contents_texture_id should be 4"); |
| 13943 static_assert(offsetof(ScheduleCALayerCHROMIUM, opacity) == 8, | 13947 static_assert(offsetof(ScheduleCALayerCHROMIUM, opacity) == 8, |
| 13944 "offset of ScheduleCALayerCHROMIUM opacity should be 8"); | 13948 "offset of ScheduleCALayerCHROMIUM opacity should be 8"); |
| 13945 static_assert( | 13949 static_assert( |
| 13946 offsetof(ScheduleCALayerCHROMIUM, background_color) == 12, | 13950 offsetof(ScheduleCALayerCHROMIUM, background_color) == 12, |
| 13947 "offset of ScheduleCALayerCHROMIUM background_color should be 12"); | 13951 "offset of ScheduleCALayerCHROMIUM background_color should be 12"); |
| 13948 static_assert(offsetof(ScheduleCALayerCHROMIUM, edge_aa_mask) == 16, | 13952 static_assert(offsetof(ScheduleCALayerCHROMIUM, edge_aa_mask) == 16, |
| 13949 "offset of ScheduleCALayerCHROMIUM edge_aa_mask should be 16"); | 13953 "offset of ScheduleCALayerCHROMIUM edge_aa_mask should be 16"); |
| 13950 static_assert(offsetof(ScheduleCALayerCHROMIUM, is_clipped) == 20, | 13954 static_assert(offsetof(ScheduleCALayerCHROMIUM, is_clipped) == 20, |
| 13951 "offset of ScheduleCALayerCHROMIUM is_clipped should be 20"); | 13955 "offset of ScheduleCALayerCHROMIUM is_clipped should be 20"); |
| 13952 static_assert( | 13956 static_assert( |
| 13953 offsetof(ScheduleCALayerCHROMIUM, sorting_context_id) == 24, | 13957 offsetof(ScheduleCALayerCHROMIUM, sorting_context_id) == 24, |
| 13954 "offset of ScheduleCALayerCHROMIUM sorting_context_id should be 24"); | 13958 "offset of ScheduleCALayerCHROMIUM sorting_context_id should be 24"); |
| 13955 static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_id) == 28, | 13959 static_assert(offsetof(ScheduleCALayerCHROMIUM, filter) == 28, |
| 13956 "offset of ScheduleCALayerCHROMIUM shm_id should be 28"); | 13960 "offset of ScheduleCALayerCHROMIUM filter should be 28"); |
| 13957 static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_offset) == 32, | 13961 static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_id) == 32, |
| 13958 "offset of ScheduleCALayerCHROMIUM shm_offset should be 32"); | 13962 "offset of ScheduleCALayerCHROMIUM shm_id should be 32"); |
| 13963 static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_offset) == 36, |
| 13964 "offset of ScheduleCALayerCHROMIUM shm_offset should be 36"); |
| 13959 | 13965 |
| 13960 struct CommitOverlayPlanesCHROMIUM { | 13966 struct CommitOverlayPlanesCHROMIUM { |
| 13961 typedef CommitOverlayPlanesCHROMIUM ValueType; | 13967 typedef CommitOverlayPlanesCHROMIUM ValueType; |
| 13962 static const CommandId kCmdId = kCommitOverlayPlanesCHROMIUM; | 13968 static const CommandId kCmdId = kCommitOverlayPlanesCHROMIUM; |
| 13963 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13969 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13964 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13970 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13965 | 13971 |
| 13966 static uint32_t ComputeSize() { | 13972 static uint32_t ComputeSize() { |
| 13967 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13973 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13968 } | 13974 } |
| (...skipping 1786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15755 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, | 15761 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, |
| 15756 location) == 4, | 15762 location) == 4, |
| 15757 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " | 15763 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " |
| 15758 "location should be 4"); | 15764 "location should be 4"); |
| 15759 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, | 15765 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, |
| 15760 transpose) == 8, | 15766 transpose) == 8, |
| 15761 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " | 15767 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " |
| 15762 "transpose should be 8"); | 15768 "transpose should be 8"); |
| 15763 | 15769 |
| 15764 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15770 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| OLD | NEW |