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

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

Issue 2831733003: Fix blits from multisampled renderbuffers to alpha:false WebGL back buffer. (Closed)
Patch Set: Add PLATFORM_EXPORT to fix link failure on Windows. Created 3 years, 8 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 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 2f1e47f72ddd22f8ba1dd50d689d196954b5e8f4..3ec79a26dbdcb0567690e45751d78ab3fb7be909 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
@@ -13084,6 +13084,52 @@ static_assert(offsetof(BindTexImage2DCHROMIUM, target) == 4,
static_assert(offsetof(BindTexImage2DCHROMIUM, imageId) == 8,
"offset of BindTexImage2DCHROMIUM imageId should be 8");
+struct BindTexImage2DWithInternalformatCHROMIUM {
+ typedef BindTexImage2DWithInternalformatCHROMIUM ValueType;
+ static const CommandId kCmdId = kBindTexImage2DWithInternalformatCHROMIUM;
+ static const cmd::ArgFlags kArgFlags = cmd::kFixed;
+ static const uint8_t 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 _target, GLenum _internalformat, GLint _imageId) {
+ SetHeader();
+ target = _target;
+ internalformat = _internalformat;
+ imageId = _imageId;
+ }
+
+ void* Set(void* cmd, GLenum _target, GLenum _internalformat, GLint _imageId) {
+ static_cast<ValueType*>(cmd)->Init(_target, _internalformat, _imageId);
+ return NextCmdAddress<ValueType>(cmd);
+ }
+
+ gpu::CommandHeader header;
+ uint32_t target;
+ uint32_t internalformat;
+ int32_t imageId;
+};
+
+static_assert(sizeof(BindTexImage2DWithInternalformatCHROMIUM) == 16,
+ "size of BindTexImage2DWithInternalformatCHROMIUM should be 16");
+static_assert(
+ offsetof(BindTexImage2DWithInternalformatCHROMIUM, header) == 0,
+ "offset of BindTexImage2DWithInternalformatCHROMIUM header should be 0");
+static_assert(
+ offsetof(BindTexImage2DWithInternalformatCHROMIUM, target) == 4,
+ "offset of BindTexImage2DWithInternalformatCHROMIUM target should be 4");
+static_assert(offsetof(BindTexImage2DWithInternalformatCHROMIUM,
+ internalformat) == 8,
+ "offset of BindTexImage2DWithInternalformatCHROMIUM "
+ "internalformat should be 8");
+static_assert(
+ offsetof(BindTexImage2DWithInternalformatCHROMIUM, imageId) == 12,
+ "offset of BindTexImage2DWithInternalformatCHROMIUM imageId should be 12");
+
struct ReleaseTexImage2DCHROMIUM {
typedef ReleaseTexImage2DCHROMIUM ValueType;
static const CommandId kCmdId = kReleaseTexImage2DCHROMIUM;
« 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