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

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: fix nit 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 14363 matching lines...) Expand 10 before | Expand all | Expand 10 after
14374 } 14374 }
14375 14375
14376 gpu::CommandHeader header; 14376 gpu::CommandHeader header;
14377 }; 14377 };
14378 14378
14379 static_assert(sizeof(BlendBarrierKHR) == 4, 14379 static_assert(sizeof(BlendBarrierKHR) == 4,
14380 "size of BlendBarrierKHR should be 4"); 14380 "size of BlendBarrierKHR should be 4");
14381 static_assert(offsetof(BlendBarrierKHR, header) == 0, 14381 static_assert(offsetof(BlendBarrierKHR, header) == 0,
14382 "offset of BlendBarrierKHR header should be 0"); 14382 "offset of BlendBarrierKHR header should be 0");
14383 14383
14384 struct ApplyScreenSpaceAntialiasingCHROMIUM {
14385 typedef ApplyScreenSpaceAntialiasingCHROMIUM ValueType;
14386 static const CommandId kCmdId = kApplyScreenSpaceAntialiasingCHROMIUM;
14387 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
14388 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
14389
14390 static uint32_t ComputeSize() {
14391 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
14392 }
14393
14394 void SetHeader() { header.SetCmd<ValueType>(); }
14395
14396 void Init() { SetHeader(); }
14397
14398 void* Set(void* cmd) {
14399 static_cast<ValueType*>(cmd)->Init();
14400 return NextCmdAddress<ValueType>(cmd);
14401 }
14402
14403 gpu::CommandHeader header;
14404 };
14405
14406 static_assert(sizeof(ApplyScreenSpaceAntialiasingCHROMIUM) == 4,
14407 "size of ApplyScreenSpaceAntialiasingCHROMIUM should be 4");
14408 static_assert(
14409 offsetof(ApplyScreenSpaceAntialiasingCHROMIUM, header) == 0,
14410 "offset of ApplyScreenSpaceAntialiasingCHROMIUM header should be 0");
14411
14384 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 14412 #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