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

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

Issue 7890046: Command to mark surface inactive, so gpu process can release resources. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: updating with recent changes Created 9 years, 3 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 0c29aa754eafff77a15a1c01383155491195c62e..0c57cbf136d0cda6cb824b1b652419e0dfc568ae 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
@@ -9105,6 +9105,40 @@ COMPILE_ASSERT(sizeof(Placeholder453CHROMIUM) == 4,
COMPILE_ASSERT(offsetof(Placeholder453CHROMIUM, header) == 0,
OffsetOf_Placeholder453CHROMIUM_header_not_0);
+struct SetSurfaceVisibleCHROMIUM {
+ typedef SetSurfaceVisibleCHROMIUM ValueType;
+ static const CommandId kCmdId = kSetSurfaceVisibleCHROMIUM;
+ static const cmd::ArgFlags kArgFlags = cmd::kFixed;
+
+ static uint32 ComputeSize() {
+ return static_cast<uint32>(sizeof(ValueType)); // NOLINT
+ }
+
+ void SetHeader() {
+ header.SetCmd<ValueType>();
+ }
+
+ void Init(GLboolean _visible) {
+ SetHeader();
+ visible = _visible;
+ }
+
+ void* Set(void* cmd, GLboolean _visible) {
+ static_cast<ValueType*>(cmd)->Init(_visible);
+ return NextCmdAddress<ValueType>(cmd);
+ }
+
+ gpu::CommandHeader header;
+ uint32 visible;
+};
+
+COMPILE_ASSERT(sizeof(SetSurfaceVisibleCHROMIUM) == 8,
+ Sizeof_SetSurfaceVisibleCHROMIUM_is_not_8);
+COMPILE_ASSERT(offsetof(SetSurfaceVisibleCHROMIUM, header) == 0,
+ OffsetOf_SetSurfaceVisibleCHROMIUM_header_not_0);
+COMPILE_ASSERT(offsetof(SetSurfaceVisibleCHROMIUM, visible) == 4,
+ OffsetOf_SetSurfaceVisibleCHROMIUM_visible_not_4);
+
#endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_

Powered by Google App Engine
This is Rietveld 408576698