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

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

Issue 9968113: Addition of GL_CHROMIUM_copy_texture extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Adding extension implementation files. Created 8 years, 9 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
===================================================================
--- gpu/command_buffer/common/gles2_cmd_format_autogen.h (revision 128216)
+++ gpu/command_buffer/common/gles2_cmd_format_autogen.h (working copy)
@@ -9524,6 +9524,54 @@
COMPILE_ASSERT(offsetof(TexImageIOSurface2DCHROMIUM, plane) == 20,
OffsetOf_TexImageIOSurface2DCHROMIUM_plane_not_20);
+struct CopyTextureCHROMIUM {
+ typedef CopyTextureCHROMIUM ValueType;
+ static const CommandId kCmdId = kCopyTextureCHROMIUM;
+ static const cmd::ArgFlags kArgFlags = cmd::kFixed;
+
+ static uint32 ComputeSize() {
+ return static_cast<uint32>(sizeof(ValueType)); // NOLINT
+ }
+
+ void SetHeader() {
+ header.SetCmd<ValueType>();
+ }
+
+ void Init(GLenum _target, GLenum _source_id, GLenum _dest_id, GLint _level) {
+ SetHeader();
+ target = _target;
+ source_id = _source_id;
+ dest_id = _dest_id;
+ level = _level;
+ }
+
+ void* Set(
+ void* cmd, GLenum _target, GLenum _source_id, GLenum _dest_id,
+ GLint _level) {
+ static_cast<ValueType*>(cmd)->Init(_target, _source_id, _dest_id, _level);
+ return NextCmdAddress<ValueType>(cmd);
+ }
+
+ gpu::CommandHeader header;
+ uint32 target;
+ uint32 source_id;
+ uint32 dest_id;
+ int32 level;
+};
+
+COMPILE_ASSERT(sizeof(CopyTextureCHROMIUM) == 20,
+ Sizeof_CopyTextureCHROMIUM_is_not_20);
+COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, header) == 0,
+ OffsetOf_CopyTextureCHROMIUM_header_not_0);
+COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, target) == 4,
+ OffsetOf_CopyTextureCHROMIUM_target_not_4);
+COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, source_id) == 8,
+ OffsetOf_CopyTextureCHROMIUM_source_id_not_8);
+COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, dest_id) == 12,
+ OffsetOf_CopyTextureCHROMIUM_dest_id_not_12);
+COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, level) == 16,
+ OffsetOf_CopyTextureCHROMIUM_level_not_16);
+
struct DrawArraysInstancedANGLE {
typedef DrawArraysInstancedANGLE ValueType;
static const CommandId kCmdId = kDrawArraysInstancedANGLE;

Powered by Google App Engine
This is Rietveld 408576698