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

Side by Side 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, 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file is auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // DO NOT EDIT! 7 // DO NOT EDIT!
8 8
9 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 9 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
10 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 10 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
(...skipping 9087 matching lines...) Expand 10 before | Expand all | Expand 10 after
9098 } 9098 }
9099 9099
9100 gpu::CommandHeader header; 9100 gpu::CommandHeader header;
9101 }; 9101 };
9102 9102
9103 COMPILE_ASSERT(sizeof(Placeholder453CHROMIUM) == 4, 9103 COMPILE_ASSERT(sizeof(Placeholder453CHROMIUM) == 4,
9104 Sizeof_Placeholder453CHROMIUM_is_not_4); 9104 Sizeof_Placeholder453CHROMIUM_is_not_4);
9105 COMPILE_ASSERT(offsetof(Placeholder453CHROMIUM, header) == 0, 9105 COMPILE_ASSERT(offsetof(Placeholder453CHROMIUM, header) == 0,
9106 OffsetOf_Placeholder453CHROMIUM_header_not_0); 9106 OffsetOf_Placeholder453CHROMIUM_header_not_0);
9107 9107
9108 struct SetSurfaceVisibleCHROMIUM {
9109 typedef SetSurfaceVisibleCHROMIUM ValueType;
9110 static const CommandId kCmdId = kSetSurfaceVisibleCHROMIUM;
9111 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
9112
9113 static uint32 ComputeSize() {
9114 return static_cast<uint32>(sizeof(ValueType)); // NOLINT
9115 }
9116
9117 void SetHeader() {
9118 header.SetCmd<ValueType>();
9119 }
9120
9121 void Init(GLboolean _visible) {
9122 SetHeader();
9123 visible = _visible;
9124 }
9125
9126 void* Set(void* cmd, GLboolean _visible) {
9127 static_cast<ValueType*>(cmd)->Init(_visible);
9128 return NextCmdAddress<ValueType>(cmd);
9129 }
9130
9131 gpu::CommandHeader header;
9132 uint32 visible;
9133 };
9134
9135 COMPILE_ASSERT(sizeof(SetSurfaceVisibleCHROMIUM) == 8,
9136 Sizeof_SetSurfaceVisibleCHROMIUM_is_not_8);
9137 COMPILE_ASSERT(offsetof(SetSurfaceVisibleCHROMIUM, header) == 0,
9138 OffsetOf_SetSurfaceVisibleCHROMIUM_header_not_0);
9139 COMPILE_ASSERT(offsetof(SetSurfaceVisibleCHROMIUM, visible) == 4,
9140 OffsetOf_SetSurfaceVisibleCHROMIUM_visible_not_4);
9141
9108 9142
9109 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 9143 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
9110 9144
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698