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

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

Issue 1119723003: Add glCopyCompressedTextureCHROMIUM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use ScopedVector for storing image format configurations Created 5 years, 6 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 e92c2d13c733d35b4eff8318d38016147cfdeacc..272aed29dacd0aafa666eee4e9e6fccf5e23a273 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
@@ -12282,6 +12282,47 @@ static_assert(offsetof(CopySubTextureCHROMIUM, width) == 32,
static_assert(offsetof(CopySubTextureCHROMIUM, height) == 36,
"offset of CopySubTextureCHROMIUM height should be 36");
+struct CompressedCopyTextureCHROMIUM {
+ typedef CompressedCopyTextureCHROMIUM ValueType;
+ static const CommandId kCmdId = kCompressedCopyTextureCHROMIUM;
+ 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 _target, GLenum _source_id, GLenum _dest_id) {
+ SetHeader();
+ target = _target;
+ source_id = _source_id;
+ dest_id = _dest_id;
+ }
+
+ void* Set(void* cmd, GLenum _target, GLenum _source_id, GLenum _dest_id) {
+ static_cast<ValueType*>(cmd)->Init(_target, _source_id, _dest_id);
+ return NextCmdAddress<ValueType>(cmd);
+ }
+
+ gpu::CommandHeader header;
+ uint32_t target;
+ uint32_t source_id;
+ uint32_t dest_id;
+};
+
+static_assert(sizeof(CompressedCopyTextureCHROMIUM) == 16,
+ "size of CompressedCopyTextureCHROMIUM should be 16");
+static_assert(offsetof(CompressedCopyTextureCHROMIUM, header) == 0,
+ "offset of CompressedCopyTextureCHROMIUM header should be 0");
+static_assert(offsetof(CompressedCopyTextureCHROMIUM, target) == 4,
+ "offset of CompressedCopyTextureCHROMIUM target should be 4");
+static_assert(offsetof(CompressedCopyTextureCHROMIUM, source_id) == 8,
+ "offset of CompressedCopyTextureCHROMIUM source_id should be 8");
+static_assert(offsetof(CompressedCopyTextureCHROMIUM, dest_id) == 12,
+ "offset of CompressedCopyTextureCHROMIUM dest_id should be 12");
+
struct DrawArraysInstancedANGLE {
typedef DrawArraysInstancedANGLE ValueType;
static const CommandId kCmdId = kDrawArraysInstancedANGLE;
« 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