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

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

Issue 2379203002: implement getBufferSubDataAsync prototype (Closed)
Patch Set: hide getBufferSubDataAsync behind ExperimentalCanvasFeatures Created 4 years, 2 months 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 15130 matching lines...) Expand 10 before | Expand all | Expand 10 after
15141 offsetof(ProgramPathFragmentInputGenCHROMIUM, components) == 16, 15141 offsetof(ProgramPathFragmentInputGenCHROMIUM, components) == 16,
15142 "offset of ProgramPathFragmentInputGenCHROMIUM components should be 16"); 15142 "offset of ProgramPathFragmentInputGenCHROMIUM components should be 16");
15143 static_assert( 15143 static_assert(
15144 offsetof(ProgramPathFragmentInputGenCHROMIUM, coeffs_shm_id) == 20, 15144 offsetof(ProgramPathFragmentInputGenCHROMIUM, coeffs_shm_id) == 20,
15145 "offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_id should be 20"); 15145 "offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_id should be 20");
15146 static_assert(offsetof(ProgramPathFragmentInputGenCHROMIUM, 15146 static_assert(offsetof(ProgramPathFragmentInputGenCHROMIUM,
15147 coeffs_shm_offset) == 24, 15147 coeffs_shm_offset) == 24,
15148 "offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_offset " 15148 "offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_offset "
15149 "should be 24"); 15149 "should be 24");
15150 15150
15151 struct GetBufferSubDataAsyncCHROMIUM {
15152 typedef GetBufferSubDataAsyncCHROMIUM ValueType;
15153 static const CommandId kCmdId = kGetBufferSubDataAsyncCHROMIUM;
15154 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
15155 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1);
15156
15157 static uint32_t ComputeSize() {
15158 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
15159 }
15160
15161 void SetHeader() { header.SetCmd<ValueType>(); }
15162
15163 void Init(GLenum _target,
15164 GLintptr _offset,
15165 GLsizeiptr _size,
15166 uint32_t _data_shm_id,
15167 uint32_t _data_shm_offset) {
15168 SetHeader();
15169 target = _target;
15170 offset = _offset;
15171 size = _size;
15172 data_shm_id = _data_shm_id;
15173 data_shm_offset = _data_shm_offset;
15174 }
15175
15176 void* Set(void* cmd,
15177 GLenum _target,
15178 GLintptr _offset,
15179 GLsizeiptr _size,
15180 uint32_t _data_shm_id,
15181 uint32_t _data_shm_offset) {
15182 static_cast<ValueType*>(cmd)->Init(_target, _offset, _size, _data_shm_id,
15183 _data_shm_offset);
15184 return NextCmdAddress<ValueType>(cmd);
15185 }
15186
15187 gpu::CommandHeader header;
15188 uint32_t target;
15189 int32_t offset;
15190 int32_t size;
15191 uint32_t data_shm_id;
15192 uint32_t data_shm_offset;
15193 };
15194
15195 static_assert(sizeof(GetBufferSubDataAsyncCHROMIUM) == 24,
15196 "size of GetBufferSubDataAsyncCHROMIUM should be 24");
15197 static_assert(offsetof(GetBufferSubDataAsyncCHROMIUM, header) == 0,
15198 "offset of GetBufferSubDataAsyncCHROMIUM header should be 0");
15199 static_assert(offsetof(GetBufferSubDataAsyncCHROMIUM, target) == 4,
15200 "offset of GetBufferSubDataAsyncCHROMIUM target should be 4");
15201 static_assert(offsetof(GetBufferSubDataAsyncCHROMIUM, offset) == 8,
15202 "offset of GetBufferSubDataAsyncCHROMIUM offset should be 8");
15203 static_assert(offsetof(GetBufferSubDataAsyncCHROMIUM, size) == 12,
15204 "offset of GetBufferSubDataAsyncCHROMIUM size should be 12");
15205 static_assert(
15206 offsetof(GetBufferSubDataAsyncCHROMIUM, data_shm_id) == 16,
15207 "offset of GetBufferSubDataAsyncCHROMIUM data_shm_id should be 16");
15208 static_assert(
15209 offsetof(GetBufferSubDataAsyncCHROMIUM, data_shm_offset) == 20,
15210 "offset of GetBufferSubDataAsyncCHROMIUM data_shm_offset should be 20");
15211
15151 struct CoverageModulationCHROMIUM { 15212 struct CoverageModulationCHROMIUM {
15152 typedef CoverageModulationCHROMIUM ValueType; 15213 typedef CoverageModulationCHROMIUM ValueType;
15153 static const CommandId kCmdId = kCoverageModulationCHROMIUM; 15214 static const CommandId kCmdId = kCoverageModulationCHROMIUM;
15154 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 15215 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
15155 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); 15216 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
15156 15217
15157 static uint32_t ComputeSize() { 15218 static uint32_t ComputeSize() {
15158 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT 15219 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
15159 } 15220 }
15160 15221
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
15490 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, x) == 4, 15551 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, x) == 4,
15491 "offset of SwapBuffersWithDamageCHROMIUM x should be 4"); 15552 "offset of SwapBuffersWithDamageCHROMIUM x should be 4");
15492 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, y) == 8, 15553 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, y) == 8,
15493 "offset of SwapBuffersWithDamageCHROMIUM y should be 8"); 15554 "offset of SwapBuffersWithDamageCHROMIUM y should be 8");
15494 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, width) == 12, 15555 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, width) == 12,
15495 "offset of SwapBuffersWithDamageCHROMIUM width should be 12"); 15556 "offset of SwapBuffersWithDamageCHROMIUM width should be 12");
15496 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, height) == 16, 15557 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, height) == 16,
15497 "offset of SwapBuffersWithDamageCHROMIUM height should be 16"); 15558 "offset of SwapBuffersWithDamageCHROMIUM height should be 16");
15498 15559
15499 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 15560 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698