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

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

Issue 132543002: Not for review. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 248ad46000114b5a6efb2c5035c06208aaa18cc6..81d8d58eb65ebc021b8f24e14b378b9c411b9d7a 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
@@ -9470,6 +9470,54 @@ COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, width) == 12,
COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, height) == 16,
OffsetOf_PostSubBufferCHROMIUM_height_not_16);
+struct SetOverlayPlaneCHROMIUM {
+ typedef SetOverlayPlaneCHROMIUM ValueType;
+ static const CommandId kCmdId = kSetOverlayPlaneCHROMIUM;
+ static const cmd::ArgFlags kArgFlags = cmd::kFixed;
+
+ static uint32 ComputeSize() {
+ return static_cast<uint32>(sizeof(ValueType)); // NOLINT
+ }
+
+ void SetHeader() { header.SetCmd<ValueType>(); }
+
+ void Init(GLint _plane_id,
+ GLenum _texture_id,
+ GLint _x,
+ GLint _y,
+ GLint _width,
+ GLint _height) {
+ SetHeader();
+ plane_id = _plane_id;
+ texture_id = _texture_id;
+ x = _x;
+ y = _y;
+ width = _width;
+ height = _height;
+ }
+
+ void* Set(void* cmd,
+ GLint _plane_id,
+ GLenum _texture_id,
+ GLint _x,
+ GLint _y,
+ GLint _width,
+ GLint _height) {
+ static_cast<ValueType*>(cmd)
+ ->Init(_plane_id, _texture_id, _x, _y, _width, _height);
+ return NextCmdAddress<ValueType>(cmd);
+ }
+
+ gpu::CommandHeader header;
+ int32 plane_id;
+ ;
+ uint32 texture_id;
+ int32 x;
+ int32 y;
+ int32 width;
+ int32 height;
+};
+
struct TexImageIOSurface2DCHROMIUM {
typedef TexImageIOSurface2DCHROMIUM ValueType;
static const CommandId kCmdId = kTexImageIOSurface2DCHROMIUM;

Powered by Google App Engine
This is Rietveld 408576698