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

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

Issue 10543125: gpu: Add support for GLX_EXT_texture_from_pixmap extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 5b2e605c8681eecb654948ca1b509003999c3a8d..7d68ce24755e1eeea613dd988fc26e08b5cff63a 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
@@ -9934,6 +9934,44 @@ COMPILE_ASSERT(offsetof(ConsumeTextureCHROMIUMImmediate, header) == 0,
COMPILE_ASSERT(offsetof(ConsumeTextureCHROMIUMImmediate, target) == 4,
OffsetOf_ConsumeTextureCHROMIUMImmediate_target_not_4);
+struct TexImagePixmap2DCHROMIUM {
+ typedef TexImagePixmap2DCHROMIUM ValueType;
+ static const CommandId kCmdId = kTexImagePixmap2DCHROMIUM;
+ 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, GLuint _pixmapId) {
+ SetHeader();
+ target = _target;
+ pixmapId = _pixmapId;
+ }
+
+ void* Set(void* cmd, GLenum _target, GLuint _pixmapId) {
+ static_cast<ValueType*>(cmd)->Init(_target, _pixmapId);
+ return NextCmdAddress<ValueType>(cmd);
+ }
+
+ gpu::CommandHeader header;
+ uint32 target;
+ uint32 pixmapId;
+};
+
+COMPILE_ASSERT(sizeof(TexImagePixmap2DCHROMIUM) == 12,
+ Sizeof_TexImagePixmap2DCHROMIUM_is_not_12);
+COMPILE_ASSERT(offsetof(TexImagePixmap2DCHROMIUM, header) == 0,
+ OffsetOf_TexImagePixmap2DCHROMIUM_header_not_0);
+COMPILE_ASSERT(offsetof(TexImagePixmap2DCHROMIUM, target) == 4,
+ OffsetOf_TexImagePixmap2DCHROMIUM_target_not_4);
+COMPILE_ASSERT(offsetof(TexImagePixmap2DCHROMIUM, pixmapId) == 8,
+ OffsetOf_TexImagePixmap2DCHROMIUM_pixmapId_not_8);
+
#endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_

Powered by Google App Engine
This is Rietveld 408576698