Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_format_autogen.h

Issue 2443023002: gpu: Add CHROMIUM_copy_image extension.
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 13069 matching lines...) Expand 10 before | Expand all | Expand 10 after
13080 13080
13081 static_assert(sizeof(ReleaseTexImage2DCHROMIUM) == 12, 13081 static_assert(sizeof(ReleaseTexImage2DCHROMIUM) == 12,
13082 "size of ReleaseTexImage2DCHROMIUM should be 12"); 13082 "size of ReleaseTexImage2DCHROMIUM should be 12");
13083 static_assert(offsetof(ReleaseTexImage2DCHROMIUM, header) == 0, 13083 static_assert(offsetof(ReleaseTexImage2DCHROMIUM, header) == 0,
13084 "offset of ReleaseTexImage2DCHROMIUM header should be 0"); 13084 "offset of ReleaseTexImage2DCHROMIUM header should be 0");
13085 static_assert(offsetof(ReleaseTexImage2DCHROMIUM, target) == 4, 13085 static_assert(offsetof(ReleaseTexImage2DCHROMIUM, target) == 4,
13086 "offset of ReleaseTexImage2DCHROMIUM target should be 4"); 13086 "offset of ReleaseTexImage2DCHROMIUM target should be 4");
13087 static_assert(offsetof(ReleaseTexImage2DCHROMIUM, imageId) == 8, 13087 static_assert(offsetof(ReleaseTexImage2DCHROMIUM, imageId) == 8,
13088 "offset of ReleaseTexImage2DCHROMIUM imageId should be 8"); 13088 "offset of ReleaseTexImage2DCHROMIUM imageId should be 8");
13089 13089
13090 struct CopyImageSubDataCHROMIUM {
13091 typedef CopyImageSubDataCHROMIUM ValueType;
13092 static const CommandId kCmdId = kCopyImageSubDataCHROMIUM;
13093 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
13094 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
13095
13096 static uint32_t ComputeSize() {
13097 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
13098 }
13099
13100 void SetHeader() { header.SetCmd<ValueType>(); }
13101
13102 void Init(GLint _source_image_id,
13103 GLint _dest_texture_id,
13104 GLint _xoffset,
13105 GLint _yoffset,
13106 GLint _x,
13107 GLint _y,
13108 GLsizei _width,
13109 GLsizei _height,
13110 GLint _in_fence_id,
13111 GLint _out_fence_id) {
13112 SetHeader();
13113 source_image_id = _source_image_id;
13114 dest_texture_id = _dest_texture_id;
13115 xoffset = _xoffset;
13116 yoffset = _yoffset;
13117 x = _x;
13118 y = _y;
13119 width = _width;
13120 height = _height;
13121 in_fence_id = _in_fence_id;
13122 out_fence_id = _out_fence_id;
13123 }
13124
13125 void* Set(void* cmd,
13126 GLint _source_image_id,
13127 GLint _dest_texture_id,
13128 GLint _xoffset,
13129 GLint _yoffset,
13130 GLint _x,
13131 GLint _y,
13132 GLsizei _width,
13133 GLsizei _height,
13134 GLint _in_fence_id,
13135 GLint _out_fence_id) {
13136 static_cast<ValueType*>(cmd)->Init(_source_image_id, _dest_texture_id,
13137 _xoffset, _yoffset, _x, _y, _width,
13138 _height, _in_fence_id, _out_fence_id);
13139 return NextCmdAddress<ValueType>(cmd);
13140 }
13141
13142 gpu::CommandHeader header;
13143 int32_t source_image_id;
13144 int32_t dest_texture_id;
13145 int32_t xoffset;
13146 int32_t yoffset;
13147 int32_t x;
13148 int32_t y;
13149 int32_t width;
13150 int32_t height;
13151 int32_t in_fence_id;
13152 int32_t out_fence_id;
13153 };
13154
13155 static_assert(sizeof(CopyImageSubDataCHROMIUM) == 44,
13156 "size of CopyImageSubDataCHROMIUM should be 44");
13157 static_assert(offsetof(CopyImageSubDataCHROMIUM, header) == 0,
13158 "offset of CopyImageSubDataCHROMIUM header should be 0");
13159 static_assert(offsetof(CopyImageSubDataCHROMIUM, source_image_id) == 4,
13160 "offset of CopyImageSubDataCHROMIUM source_image_id should be 4");
13161 static_assert(offsetof(CopyImageSubDataCHROMIUM, dest_texture_id) == 8,
13162 "offset of CopyImageSubDataCHROMIUM dest_texture_id should be 8");
13163 static_assert(offsetof(CopyImageSubDataCHROMIUM, xoffset) == 12,
13164 "offset of CopyImageSubDataCHROMIUM xoffset should be 12");
13165 static_assert(offsetof(CopyImageSubDataCHROMIUM, yoffset) == 16,
13166 "offset of CopyImageSubDataCHROMIUM yoffset should be 16");
13167 static_assert(offsetof(CopyImageSubDataCHROMIUM, x) == 20,
13168 "offset of CopyImageSubDataCHROMIUM x should be 20");
13169 static_assert(offsetof(CopyImageSubDataCHROMIUM, y) == 24,
13170 "offset of CopyImageSubDataCHROMIUM y should be 24");
13171 static_assert(offsetof(CopyImageSubDataCHROMIUM, width) == 28,
13172 "offset of CopyImageSubDataCHROMIUM width should be 28");
13173 static_assert(offsetof(CopyImageSubDataCHROMIUM, height) == 32,
13174 "offset of CopyImageSubDataCHROMIUM height should be 32");
13175 static_assert(offsetof(CopyImageSubDataCHROMIUM, in_fence_id) == 36,
13176 "offset of CopyImageSubDataCHROMIUM in_fence_id should be 36");
13177 static_assert(offsetof(CopyImageSubDataCHROMIUM, out_fence_id) == 40,
13178 "offset of CopyImageSubDataCHROMIUM out_fence_id should be 40");
13179
13090 struct TraceBeginCHROMIUM { 13180 struct TraceBeginCHROMIUM {
13091 typedef TraceBeginCHROMIUM ValueType; 13181 typedef TraceBeginCHROMIUM ValueType;
13092 static const CommandId kCmdId = kTraceBeginCHROMIUM; 13182 static const CommandId kCmdId = kTraceBeginCHROMIUM;
13093 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 13183 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
13094 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); 13184 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
13095 13185
13096 static uint32_t ComputeSize() { 13186 static uint32_t ComputeSize() {
13097 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT 13187 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
13098 } 13188 }
13099 13189
(...skipping 2496 matching lines...) Expand 10 before | Expand all | Expand 10 after
15596 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, x) == 4, 15686 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, x) == 4,
15597 "offset of SwapBuffersWithDamageCHROMIUM x should be 4"); 15687 "offset of SwapBuffersWithDamageCHROMIUM x should be 4");
15598 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, y) == 8, 15688 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, y) == 8,
15599 "offset of SwapBuffersWithDamageCHROMIUM y should be 8"); 15689 "offset of SwapBuffersWithDamageCHROMIUM y should be 8");
15600 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, width) == 12, 15690 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, width) == 12,
15601 "offset of SwapBuffersWithDamageCHROMIUM width should be 12"); 15691 "offset of SwapBuffersWithDamageCHROMIUM width should be 12");
15602 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, height) == 16, 15692 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, height) == 16,
15603 "offset of SwapBuffersWithDamageCHROMIUM height should be 16"); 15693 "offset of SwapBuffersWithDamageCHROMIUM height should be 16");
15604 15694
15605 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 15695 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/cmd_buffer_functions.txt ('k') | gpu/command_buffer/common/gles2_cmd_format_test_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698