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

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

Issue 1298523003: Add GL_CHROMIUM_screen_space_antialiasing to support alternative AA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add extension Created 5 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 14644 matching lines...) Expand 10 before | Expand all | Expand 10 after
14655 } 14655 }
14656 14656
14657 gpu::CommandHeader header; 14657 gpu::CommandHeader header;
14658 }; 14658 };
14659 14659
14660 static_assert(sizeof(BlendBarrierKHR) == 4, 14660 static_assert(sizeof(BlendBarrierKHR) == 4,
14661 "size of BlendBarrierKHR should be 4"); 14661 "size of BlendBarrierKHR should be 4");
14662 static_assert(offsetof(BlendBarrierKHR, header) == 0, 14662 static_assert(offsetof(BlendBarrierKHR, header) == 0,
14663 "offset of BlendBarrierKHR header should be 0"); 14663 "offset of BlendBarrierKHR header should be 0");
14664 14664
14665 struct ApplyScreenSpaceAntialiasing {
14666 typedef ApplyScreenSpaceAntialiasing ValueType;
14667 static const CommandId kCmdId = kApplyScreenSpaceAntialiasing;
14668 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
14669 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
14670
14671 static uint32_t ComputeSize() {
14672 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
14673 }
14674
14675 void SetHeader() { header.SetCmd<ValueType>(); }
14676
14677 void Init() { SetHeader(); }
14678
14679 void* Set(void* cmd) {
14680 static_cast<ValueType*>(cmd)->Init();
14681 return NextCmdAddress<ValueType>(cmd);
14682 }
14683
14684 gpu::CommandHeader header;
14685 };
14686
14687 static_assert(sizeof(ApplyScreenSpaceAntialiasing) == 4,
14688 "size of ApplyScreenSpaceAntialiasing should be 4");
14689 static_assert(offsetof(ApplyScreenSpaceAntialiasing, header) == 0,
14690 "offset of ApplyScreenSpaceAntialiasing header should be 0");
14691
14665 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 14692 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698