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

Unified Diff: gpu/command_buffer/common/gles2_cmd_format_autogen.h

Issue 1218223005: command_buffer: Implement CHROMIUM_framebuffer_mixed_samples extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-05-path-fragment-input-gen
Patch Set: rebase for commit Created 5 years 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/common/gles2_cmd_format_autogen.h
diff --git a/gpu/command_buffer/common/gles2_cmd_format_autogen.h b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
index 9b1a225eec6b2282455e9c43b1d0f82fd4c6236f..85fe48295716db79e7325afa8c3fac064437cb6e 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
@@ -15490,6 +15490,39 @@ static_assert(offsetof(ProgramPathFragmentInputGenCHROMIUM,
"offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_offset "
"should be 24");
+struct CoverageModulationCHROMIUM {
+ typedef CoverageModulationCHROMIUM ValueType;
+ static const CommandId kCmdId = kCoverageModulationCHROMIUM;
+ static const cmd::ArgFlags kArgFlags = cmd::kFixed;
+ static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
+
+ static uint32_t ComputeSize() {
+ return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
+ }
+
+ void SetHeader() { header.SetCmd<ValueType>(); }
+
+ void Init(GLenum _components) {
+ SetHeader();
+ components = _components;
+ }
+
+ void* Set(void* cmd, GLenum _components) {
+ static_cast<ValueType*>(cmd)->Init(_components);
+ return NextCmdAddress<ValueType>(cmd);
+ }
+
+ gpu::CommandHeader header;
+ uint32_t components;
+};
+
+static_assert(sizeof(CoverageModulationCHROMIUM) == 8,
+ "size of CoverageModulationCHROMIUM should be 8");
+static_assert(offsetof(CoverageModulationCHROMIUM, header) == 0,
+ "offset of CoverageModulationCHROMIUM header should be 0");
+static_assert(offsetof(CoverageModulationCHROMIUM, components) == 4,
+ "offset of CoverageModulationCHROMIUM components should be 4");
+
struct BlendBarrierKHR {
typedef BlendBarrierKHR ValueType;
static const CommandId kCmdId = kBlendBarrierKHR;
« 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