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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_format.h

Issue 12326146: Refactor/Rename a bunch of GPU stuff (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 defines the GLES2 command buffer commands. 5 // This file defines the GLES2 command buffer commands.
6 6
7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ 7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_
8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ 8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_
9 9
10 10
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 OffsetOf_ProgramInput_name_length_not_16); 164 OffsetOf_ProgramInput_name_length_not_16);
165 165
166 COMPILE_ASSERT(sizeof(ProgramInfoHeader) == 12, ProgramInfoHeader_size_not_12); 166 COMPILE_ASSERT(sizeof(ProgramInfoHeader) == 12, ProgramInfoHeader_size_not_12);
167 COMPILE_ASSERT(offsetof(ProgramInfoHeader, link_status) == 0, 167 COMPILE_ASSERT(offsetof(ProgramInfoHeader, link_status) == 0,
168 OffsetOf_ProgramInfoHeader_link_status_not_0); 168 OffsetOf_ProgramInfoHeader_link_status_not_0);
169 COMPILE_ASSERT(offsetof(ProgramInfoHeader, num_attribs) == 4, 169 COMPILE_ASSERT(offsetof(ProgramInfoHeader, num_attribs) == 4,
170 OffsetOf_ProgramInfoHeader_num_attribs_not_4); 170 OffsetOf_ProgramInfoHeader_num_attribs_not_4);
171 COMPILE_ASSERT(offsetof(ProgramInfoHeader, num_uniforms) == 8, 171 COMPILE_ASSERT(offsetof(ProgramInfoHeader, num_uniforms) == 8,
172 OffsetOf_ProgramInfoHeader_num_uniforms_not_8); 172 OffsetOf_ProgramInfoHeader_num_uniforms_not_8);
173 173
174 namespace cmds {
175
174 #include "../common/gles2_cmd_format_autogen.h" 176 #include "../common/gles2_cmd_format_autogen.h"
175 177
176 // These are hand written commands. 178 // These are hand written commands.
177 // TODO(gman): Attempt to make these auto-generated. 179 // TODO(gman): Attempt to make these auto-generated.
178 180
179 struct GetAttribLocation { 181 struct GetAttribLocation {
180 typedef GetAttribLocation ValueType; 182 typedef GetAttribLocation ValueType;
181 static const CommandId kCmdId = kGetAttribLocation; 183 static const CommandId kCmdId = kGetAttribLocation;
182 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 184 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
183 185
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 OffsetOf_GetUniformLocationBucket_program_not_4); 535 OffsetOf_GetUniformLocationBucket_program_not_4);
534 COMPILE_ASSERT(offsetof(GetUniformLocationBucket, name_bucket_id) == 8, 536 COMPILE_ASSERT(offsetof(GetUniformLocationBucket, name_bucket_id) == 8,
535 OffsetOf_GetUniformLocationBucket_name_bucket_id_not_8); 537 OffsetOf_GetUniformLocationBucket_name_bucket_id_not_8);
536 COMPILE_ASSERT(offsetof(GetUniformLocationBucket, location_shm_id) == 12, 538 COMPILE_ASSERT(offsetof(GetUniformLocationBucket, location_shm_id) == 12,
537 OffsetOf_GetUniformLocationBucket_location_shm_id_not_12); 539 OffsetOf_GetUniformLocationBucket_location_shm_id_not_12);
538 COMPILE_ASSERT(offsetof(GetUniformLocationBucket, location_shm_offset) == 16, 540 COMPILE_ASSERT(offsetof(GetUniformLocationBucket, location_shm_offset) == 16,
539 OffsetOf_GetUniformLocationBucket_location_shm_offset_not_16); 541 OffsetOf_GetUniformLocationBucket_location_shm_offset_not_16);
540 542
541 #pragma pack(pop) 543 #pragma pack(pop)
542 544
545 } // namespace cmd
543 } // namespace gles2 546 } // namespace gles2
544 } // namespace gpu 547 } // namespace gpu
545 548
546 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ 549 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/share_group.h ('k') | gpu/command_buffer/common/gles2_cmd_format_test_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698