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

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: Flush only on hide Created 9 years, 2 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 ef34bad515259c17da32f668ba13e5157b2a046f..c2fd2ef9348f8c6fa3dea6139a07ec90750cb93f 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
@@ -9165,6 +9165,40 @@ COMPILE_ASSERT(offsetof(GetTranslatedShaderSourceANGLE, shader) == 4,
COMPILE_ASSERT(offsetof(GetTranslatedShaderSourceANGLE, bucket_id) == 8,
OffsetOf_GetTranslatedShaderSourceANGLE_bucket_id_not_8);
+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