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

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

Issue 2302393002: Support swap damage rect using eglSwapBuffersWithDamageKHR (Closed)
Patch Set: Update GLSurfaceAdapter Created 4 years, 3 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 15433 matching lines...) Expand 10 before | Expand all | Expand 10 after
15444 "header should be 0"); 15444 "header should be 0");
15445 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, 15445 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate,
15446 location) == 4, 15446 location) == 4,
15447 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " 15447 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate "
15448 "location should be 4"); 15448 "location should be 4");
15449 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, 15449 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate,
15450 transpose) == 8, 15450 transpose) == 8,
15451 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " 15451 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate "
15452 "transpose should be 8"); 15452 "transpose should be 8");
15453 15453
15454 struct SwapBuffersWithDamageCHROMIUM {
15455 typedef SwapBuffersWithDamageCHROMIUM ValueType;
15456 static const CommandId kCmdId = kSwapBuffersWithDamageCHROMIUM;
15457 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
15458 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
15459
15460 static uint32_t ComputeSize() {
15461 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
15462 }
15463
15464 void SetHeader() { header.SetCmd<ValueType>(); }
15465
15466 void Init(GLint _x, GLint _y, GLint _width, GLint _height) {
15467 SetHeader();
15468 x = _x;
15469 y = _y;
15470 width = _width;
15471 height = _height;
15472 }
15473
15474 void* Set(void* cmd, GLint _x, GLint _y, GLint _width, GLint _height) {
15475 static_cast<ValueType*>(cmd)->Init(_x, _y, _width, _height);
15476 return NextCmdAddress<ValueType>(cmd);
15477 }
15478
15479 gpu::CommandHeader header;
15480 int32_t x;
15481 int32_t y;
15482 int32_t width;
15483 int32_t height;
15484 };
15485
15486 static_assert(sizeof(SwapBuffersWithDamageCHROMIUM) == 20,
15487 "size of SwapBuffersWithDamageCHROMIUM should be 20");
15488 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, header) == 0,
15489 "offset of SwapBuffersWithDamageCHROMIUM header should be 0");
15490 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, x) == 4,
15491 "offset of SwapBuffersWithDamageCHROMIUM x should be 4");
15492 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, y) == 8,
15493 "offset of SwapBuffersWithDamageCHROMIUM y should be 8");
15494 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, width) == 12,
15495 "offset of SwapBuffersWithDamageCHROMIUM width should be 12");
15496 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, height) == 16,
15497 "offset of SwapBuffersWithDamageCHROMIUM height should be 16");
15498
15454 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 15499 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/capabilities.cc ('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