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 13923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13934 static uint32_t ComputeSize() { | 13934 static uint32_t ComputeSize() { |
13935 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13935 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
13936 } | 13936 } |
13937 | 13937 |
13938 void SetHeader() { header.SetCmd<ValueType>(); } | 13938 void SetHeader() { header.SetCmd<ValueType>(); } |
13939 | 13939 |
13940 void Init(GLsizei _num_textures, | 13940 void Init(GLsizei _num_textures, |
13941 GLuint _background_color, | 13941 GLuint _background_color, |
13942 GLuint _edge_aa_mask, | 13942 GLuint _edge_aa_mask, |
13943 GLuint _filter, | 13943 GLuint _filter, |
| 13944 GLsizei _color_space_size, |
13944 GLuint _shm_id, | 13945 GLuint _shm_id, |
13945 GLuint _shm_offset) { | 13946 GLuint _shm_offset) { |
13946 SetHeader(); | 13947 SetHeader(); |
13947 num_textures = _num_textures; | 13948 num_textures = _num_textures; |
13948 background_color = _background_color; | 13949 background_color = _background_color; |
13949 edge_aa_mask = _edge_aa_mask; | 13950 edge_aa_mask = _edge_aa_mask; |
13950 filter = _filter; | 13951 filter = _filter; |
| 13952 color_space_size = _color_space_size; |
13951 shm_id = _shm_id; | 13953 shm_id = _shm_id; |
13952 shm_offset = _shm_offset; | 13954 shm_offset = _shm_offset; |
13953 } | 13955 } |
13954 | 13956 |
13955 void* Set(void* cmd, | 13957 void* Set(void* cmd, |
13956 GLsizei _num_textures, | 13958 GLsizei _num_textures, |
13957 GLuint _background_color, | 13959 GLuint _background_color, |
13958 GLuint _edge_aa_mask, | 13960 GLuint _edge_aa_mask, |
13959 GLuint _filter, | 13961 GLuint _filter, |
| 13962 GLsizei _color_space_size, |
13960 GLuint _shm_id, | 13963 GLuint _shm_id, |
13961 GLuint _shm_offset) { | 13964 GLuint _shm_offset) { |
13962 static_cast<ValueType*>(cmd)->Init(_num_textures, _background_color, | 13965 static_cast<ValueType*>(cmd)->Init(_num_textures, _background_color, |
13963 _edge_aa_mask, _filter, _shm_id, | 13966 _edge_aa_mask, _filter, |
13964 _shm_offset); | 13967 _color_space_size, _shm_id, _shm_offset); |
13965 return NextCmdAddress<ValueType>(cmd); | 13968 return NextCmdAddress<ValueType>(cmd); |
13966 } | 13969 } |
13967 | 13970 |
13968 gpu::CommandHeader header; | 13971 gpu::CommandHeader header; |
13969 int32_t num_textures; | 13972 int32_t num_textures; |
13970 uint32_t background_color; | 13973 uint32_t background_color; |
13971 uint32_t edge_aa_mask; | 13974 uint32_t edge_aa_mask; |
13972 uint32_t filter; | 13975 uint32_t filter; |
| 13976 int32_t color_space_size; |
13973 uint32_t shm_id; | 13977 uint32_t shm_id; |
13974 uint32_t shm_offset; | 13978 uint32_t shm_offset; |
13975 }; | 13979 }; |
13976 | 13980 |
13977 static_assert(sizeof(ScheduleDCLayerCHROMIUM) == 28, | 13981 static_assert(sizeof(ScheduleDCLayerCHROMIUM) == 32, |
13978 "size of ScheduleDCLayerCHROMIUM should be 28"); | 13982 "size of ScheduleDCLayerCHROMIUM should be 32"); |
13979 static_assert(offsetof(ScheduleDCLayerCHROMIUM, header) == 0, | 13983 static_assert(offsetof(ScheduleDCLayerCHROMIUM, header) == 0, |
13980 "offset of ScheduleDCLayerCHROMIUM header should be 0"); | 13984 "offset of ScheduleDCLayerCHROMIUM header should be 0"); |
13981 static_assert(offsetof(ScheduleDCLayerCHROMIUM, num_textures) == 4, | 13985 static_assert(offsetof(ScheduleDCLayerCHROMIUM, num_textures) == 4, |
13982 "offset of ScheduleDCLayerCHROMIUM num_textures should be 4"); | 13986 "offset of ScheduleDCLayerCHROMIUM num_textures should be 4"); |
13983 static_assert(offsetof(ScheduleDCLayerCHROMIUM, background_color) == 8, | 13987 static_assert(offsetof(ScheduleDCLayerCHROMIUM, background_color) == 8, |
13984 "offset of ScheduleDCLayerCHROMIUM background_color should be 8"); | 13988 "offset of ScheduleDCLayerCHROMIUM background_color should be 8"); |
13985 static_assert(offsetof(ScheduleDCLayerCHROMIUM, edge_aa_mask) == 12, | 13989 static_assert(offsetof(ScheduleDCLayerCHROMIUM, edge_aa_mask) == 12, |
13986 "offset of ScheduleDCLayerCHROMIUM edge_aa_mask should be 12"); | 13990 "offset of ScheduleDCLayerCHROMIUM edge_aa_mask should be 12"); |
13987 static_assert(offsetof(ScheduleDCLayerCHROMIUM, filter) == 16, | 13991 static_assert(offsetof(ScheduleDCLayerCHROMIUM, filter) == 16, |
13988 "offset of ScheduleDCLayerCHROMIUM filter should be 16"); | 13992 "offset of ScheduleDCLayerCHROMIUM filter should be 16"); |
13989 static_assert(offsetof(ScheduleDCLayerCHROMIUM, shm_id) == 20, | 13993 static_assert( |
13990 "offset of ScheduleDCLayerCHROMIUM shm_id should be 20"); | 13994 offsetof(ScheduleDCLayerCHROMIUM, color_space_size) == 20, |
13991 static_assert(offsetof(ScheduleDCLayerCHROMIUM, shm_offset) == 24, | 13995 "offset of ScheduleDCLayerCHROMIUM color_space_size should be 20"); |
13992 "offset of ScheduleDCLayerCHROMIUM shm_offset should be 24"); | 13996 static_assert(offsetof(ScheduleDCLayerCHROMIUM, shm_id) == 24, |
| 13997 "offset of ScheduleDCLayerCHROMIUM shm_id should be 24"); |
| 13998 static_assert(offsetof(ScheduleDCLayerCHROMIUM, shm_offset) == 28, |
| 13999 "offset of ScheduleDCLayerCHROMIUM shm_offset should be 28"); |
13993 | 14000 |
13994 struct MatrixLoadfCHROMIUMImmediate { | 14001 struct MatrixLoadfCHROMIUMImmediate { |
13995 typedef MatrixLoadfCHROMIUMImmediate ValueType; | 14002 typedef MatrixLoadfCHROMIUMImmediate ValueType; |
13996 static const CommandId kCmdId = kMatrixLoadfCHROMIUMImmediate; | 14003 static const CommandId kCmdId = kMatrixLoadfCHROMIUMImmediate; |
13997 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 14004 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
13998 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 14005 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
13999 | 14006 |
14000 static uint32_t ComputeDataSize() { | 14007 static uint32_t ComputeDataSize() { |
14001 return static_cast<uint32_t>(sizeof(GLfloat) * 16); | 14008 return static_cast<uint32_t>(sizeof(GLfloat) * 16); |
14002 } | 14009 } |
(...skipping 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15938 }; | 15945 }; |
15939 | 15946 |
15940 static_assert(sizeof(SetEnableDCLayersCHROMIUM) == 8, | 15947 static_assert(sizeof(SetEnableDCLayersCHROMIUM) == 8, |
15941 "size of SetEnableDCLayersCHROMIUM should be 8"); | 15948 "size of SetEnableDCLayersCHROMIUM should be 8"); |
15942 static_assert(offsetof(SetEnableDCLayersCHROMIUM, header) == 0, | 15949 static_assert(offsetof(SetEnableDCLayersCHROMIUM, header) == 0, |
15943 "offset of SetEnableDCLayersCHROMIUM header should be 0"); | 15950 "offset of SetEnableDCLayersCHROMIUM header should be 0"); |
15944 static_assert(offsetof(SetEnableDCLayersCHROMIUM, enabled) == 4, | 15951 static_assert(offsetof(SetEnableDCLayersCHROMIUM, enabled) == 4, |
15945 "offset of SetEnableDCLayersCHROMIUM enabled should be 4"); | 15952 "offset of SetEnableDCLayersCHROMIUM enabled should be 4"); |
15946 | 15953 |
15947 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15954 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |