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

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

Issue 2646243002: Use IDCompositionSurface to implement DirectCompositionSurfaceWin. (Closed)
Patch Set: rebase Created 3 years, 9 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 15671 matching lines...) Expand 10 before | Expand all | Expand 10 after
15682 15682
15683 static_assert(sizeof(SwapBuffersWithBoundsCHROMIUMImmediate) == 8, 15683 static_assert(sizeof(SwapBuffersWithBoundsCHROMIUMImmediate) == 8,
15684 "size of SwapBuffersWithBoundsCHROMIUMImmediate should be 8"); 15684 "size of SwapBuffersWithBoundsCHROMIUMImmediate should be 8");
15685 static_assert( 15685 static_assert(
15686 offsetof(SwapBuffersWithBoundsCHROMIUMImmediate, header) == 0, 15686 offsetof(SwapBuffersWithBoundsCHROMIUMImmediate, header) == 0,
15687 "offset of SwapBuffersWithBoundsCHROMIUMImmediate header should be 0"); 15687 "offset of SwapBuffersWithBoundsCHROMIUMImmediate header should be 0");
15688 static_assert( 15688 static_assert(
15689 offsetof(SwapBuffersWithBoundsCHROMIUMImmediate, count) == 4, 15689 offsetof(SwapBuffersWithBoundsCHROMIUMImmediate, count) == 4,
15690 "offset of SwapBuffersWithBoundsCHROMIUMImmediate count should be 4"); 15690 "offset of SwapBuffersWithBoundsCHROMIUMImmediate count should be 4");
15691 15691
15692 struct SetDrawRectangleCHROMIUM {
15693 typedef SetDrawRectangleCHROMIUM ValueType;
15694 static const CommandId kCmdId = kSetDrawRectangleCHROMIUM;
15695 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
15696 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
15697
15698 static uint32_t ComputeSize() {
15699 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
15700 }
15701
15702 void SetHeader() { header.SetCmd<ValueType>(); }
15703
15704 void Init(GLint _x, GLint _y, GLint _width, GLint _height) {
15705 SetHeader();
15706 x = _x;
15707 y = _y;
15708 width = _width;
15709 height = _height;
15710 }
15711
15712 void* Set(void* cmd, GLint _x, GLint _y, GLint _width, GLint _height) {
15713 static_cast<ValueType*>(cmd)->Init(_x, _y, _width, _height);
15714 return NextCmdAddress<ValueType>(cmd);
15715 }
15716
15717 gpu::CommandHeader header;
15718 int32_t x;
15719 int32_t y;
15720 int32_t width;
15721 int32_t height;
15722 };
15723
15724 static_assert(sizeof(SetDrawRectangleCHROMIUM) == 20,
15725 "size of SetDrawRectangleCHROMIUM should be 20");
15726 static_assert(offsetof(SetDrawRectangleCHROMIUM, header) == 0,
15727 "offset of SetDrawRectangleCHROMIUM header should be 0");
15728 static_assert(offsetof(SetDrawRectangleCHROMIUM, x) == 4,
15729 "offset of SetDrawRectangleCHROMIUM x should be 4");
15730 static_assert(offsetof(SetDrawRectangleCHROMIUM, y) == 8,
15731 "offset of SetDrawRectangleCHROMIUM y should be 8");
15732 static_assert(offsetof(SetDrawRectangleCHROMIUM, width) == 12,
15733 "offset of SetDrawRectangleCHROMIUM width should be 12");
15734 static_assert(offsetof(SetDrawRectangleCHROMIUM, height) == 16,
15735 "offset of SetDrawRectangleCHROMIUM height should be 16");
15736
15692 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 15737 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/capabilities.h ('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