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

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

Issue 189373003: Get rid of the formatting code in build_gles2_cmd_buffer.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
(...skipping 3253 matching lines...) Expand 10 before | Expand all | Expand 10 after
3264 COMPILE_ASSERT(offsetof(GetFramebufferAttachmentParameteriv, header) == 0, 3264 COMPILE_ASSERT(offsetof(GetFramebufferAttachmentParameteriv, header) == 0,
3265 OffsetOf_GetFramebufferAttachmentParameteriv_header_not_0); 3265 OffsetOf_GetFramebufferAttachmentParameteriv_header_not_0);
3266 COMPILE_ASSERT(offsetof(GetFramebufferAttachmentParameteriv, target) == 4, 3266 COMPILE_ASSERT(offsetof(GetFramebufferAttachmentParameteriv, target) == 4,
3267 OffsetOf_GetFramebufferAttachmentParameteriv_target_not_4); 3267 OffsetOf_GetFramebufferAttachmentParameteriv_target_not_4);
3268 COMPILE_ASSERT(offsetof(GetFramebufferAttachmentParameteriv, attachment) == 8, 3268 COMPILE_ASSERT(offsetof(GetFramebufferAttachmentParameteriv, attachment) == 8,
3269 OffsetOf_GetFramebufferAttachmentParameteriv_attachment_not_8); 3269 OffsetOf_GetFramebufferAttachmentParameteriv_attachment_not_8);
3270 COMPILE_ASSERT(offsetof(GetFramebufferAttachmentParameteriv, pname) == 12, 3270 COMPILE_ASSERT(offsetof(GetFramebufferAttachmentParameteriv, pname) == 12,
3271 OffsetOf_GetFramebufferAttachmentParameteriv_pname_not_12); 3271 OffsetOf_GetFramebufferAttachmentParameteriv_pname_not_12);
3272 COMPILE_ASSERT( 3272 COMPILE_ASSERT(
3273 offsetof(GetFramebufferAttachmentParameteriv, params_shm_id) == 16, 3273 offsetof(GetFramebufferAttachmentParameteriv, params_shm_id) == 16,
3274 OffsetOf_GetFramebufferAttachmentParameteriv_params_shm_id_not_16); // NOLI NT 3274 OffsetOf_GetFramebufferAttachmentParameteriv_params_shm_id_not_16);
3275 COMPILE_ASSERT( 3275 COMPILE_ASSERT(
3276 offsetof(GetFramebufferAttachmentParameteriv, params_shm_offset) == 20, 3276 offsetof(GetFramebufferAttachmentParameteriv, params_shm_offset) == 20,
3277 OffsetOf_GetFramebufferAttachmentParameteriv_params_shm_offset_not_20); // NOLINT 3277 OffsetOf_GetFramebufferAttachmentParameteriv_params_shm_offset_not_20);
3278 3278
3279 struct GetIntegerv { 3279 struct GetIntegerv {
3280 typedef GetIntegerv ValueType; 3280 typedef GetIntegerv ValueType;
3281 static const CommandId kCmdId = kGetIntegerv; 3281 static const CommandId kCmdId = kGetIntegerv;
3282 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 3282 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
3283 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); 3283 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
3284 3284
3285 typedef SizedResult<GLint> Result; 3285 typedef SizedResult<GLint> Result;
3286 3286
3287 static uint32 ComputeSize() { 3287 static uint32 ComputeSize() {
(...skipping 4698 matching lines...) Expand 10 before | Expand all | Expand 10 after
7986 COMPILE_ASSERT(sizeof(RenderbufferStorageMultisampleCHROMIUM) == 24, 7986 COMPILE_ASSERT(sizeof(RenderbufferStorageMultisampleCHROMIUM) == 24,
7987 Sizeof_RenderbufferStorageMultisampleCHROMIUM_is_not_24); 7987 Sizeof_RenderbufferStorageMultisampleCHROMIUM_is_not_24);
7988 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleCHROMIUM, header) == 0, 7988 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleCHROMIUM, header) == 0,
7989 OffsetOf_RenderbufferStorageMultisampleCHROMIUM_header_not_0); 7989 OffsetOf_RenderbufferStorageMultisampleCHROMIUM_header_not_0);
7990 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleCHROMIUM, target) == 4, 7990 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleCHROMIUM, target) == 4,
7991 OffsetOf_RenderbufferStorageMultisampleCHROMIUM_target_not_4); 7991 OffsetOf_RenderbufferStorageMultisampleCHROMIUM_target_not_4);
7992 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleCHROMIUM, samples) == 8, 7992 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleCHROMIUM, samples) == 8,
7993 OffsetOf_RenderbufferStorageMultisampleCHROMIUM_samples_not_8); 7993 OffsetOf_RenderbufferStorageMultisampleCHROMIUM_samples_not_8);
7994 COMPILE_ASSERT( 7994 COMPILE_ASSERT(
7995 offsetof(RenderbufferStorageMultisampleCHROMIUM, internalformat) == 12, 7995 offsetof(RenderbufferStorageMultisampleCHROMIUM, internalformat) == 12,
7996 OffsetOf_RenderbufferStorageMultisampleCHROMIUM_internalformat_not_12); // NOLINT 7996 OffsetOf_RenderbufferStorageMultisampleCHROMIUM_internalformat_not_12);
7997 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleCHROMIUM, width) == 16, 7997 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleCHROMIUM, width) == 16,
7998 OffsetOf_RenderbufferStorageMultisampleCHROMIUM_width_not_16); 7998 OffsetOf_RenderbufferStorageMultisampleCHROMIUM_width_not_16);
7999 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleCHROMIUM, height) == 20, 7999 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleCHROMIUM, height) == 20,
8000 OffsetOf_RenderbufferStorageMultisampleCHROMIUM_height_not_20); 8000 OffsetOf_RenderbufferStorageMultisampleCHROMIUM_height_not_20);
8001 8001
8002 // GL_EXT_multisampled_render_to_texture 8002 // GL_EXT_multisampled_render_to_texture
8003 struct RenderbufferStorageMultisampleEXT { 8003 struct RenderbufferStorageMultisampleEXT {
8004 typedef RenderbufferStorageMultisampleEXT ValueType; 8004 typedef RenderbufferStorageMultisampleEXT ValueType;
8005 static const CommandId kCmdId = kRenderbufferStorageMultisampleEXT; 8005 static const CommandId kCmdId = kRenderbufferStorageMultisampleEXT;
8006 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 8006 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
8047 COMPILE_ASSERT(sizeof(RenderbufferStorageMultisampleEXT) == 24, 8047 COMPILE_ASSERT(sizeof(RenderbufferStorageMultisampleEXT) == 24,
8048 Sizeof_RenderbufferStorageMultisampleEXT_is_not_24); 8048 Sizeof_RenderbufferStorageMultisampleEXT_is_not_24);
8049 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, header) == 0, 8049 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, header) == 0,
8050 OffsetOf_RenderbufferStorageMultisampleEXT_header_not_0); 8050 OffsetOf_RenderbufferStorageMultisampleEXT_header_not_0);
8051 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, target) == 4, 8051 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, target) == 4,
8052 OffsetOf_RenderbufferStorageMultisampleEXT_target_not_4); 8052 OffsetOf_RenderbufferStorageMultisampleEXT_target_not_4);
8053 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, samples) == 8, 8053 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, samples) == 8,
8054 OffsetOf_RenderbufferStorageMultisampleEXT_samples_not_8); 8054 OffsetOf_RenderbufferStorageMultisampleEXT_samples_not_8);
8055 COMPILE_ASSERT( 8055 COMPILE_ASSERT(
8056 offsetof(RenderbufferStorageMultisampleEXT, internalformat) == 12, 8056 offsetof(RenderbufferStorageMultisampleEXT, internalformat) == 12,
8057 OffsetOf_RenderbufferStorageMultisampleEXT_internalformat_not_12); // NOLIN T 8057 OffsetOf_RenderbufferStorageMultisampleEXT_internalformat_not_12);
8058 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, width) == 16, 8058 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, width) == 16,
8059 OffsetOf_RenderbufferStorageMultisampleEXT_width_not_16); 8059 OffsetOf_RenderbufferStorageMultisampleEXT_width_not_16);
8060 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, height) == 20, 8060 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, height) == 20,
8061 OffsetOf_RenderbufferStorageMultisampleEXT_height_not_20); 8061 OffsetOf_RenderbufferStorageMultisampleEXT_height_not_20);
8062 8062
8063 struct FramebufferTexture2DMultisampleEXT { 8063 struct FramebufferTexture2DMultisampleEXT {
8064 typedef FramebufferTexture2DMultisampleEXT ValueType; 8064 typedef FramebufferTexture2DMultisampleEXT ValueType;
8065 static const CommandId kCmdId = kFramebufferTexture2DMultisampleEXT; 8065 static const CommandId kCmdId = kFramebufferTexture2DMultisampleEXT;
8066 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 8066 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
8067 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); 8067 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1);
(...skipping 1871 matching lines...) Expand 10 before | Expand all | Expand 10 after
9939 COMPILE_ASSERT(sizeof(BindUniformLocationCHROMIUMBucket) == 16, 9939 COMPILE_ASSERT(sizeof(BindUniformLocationCHROMIUMBucket) == 16,
9940 Sizeof_BindUniformLocationCHROMIUMBucket_is_not_16); 9940 Sizeof_BindUniformLocationCHROMIUMBucket_is_not_16);
9941 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, header) == 0, 9941 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, header) == 0,
9942 OffsetOf_BindUniformLocationCHROMIUMBucket_header_not_0); 9942 OffsetOf_BindUniformLocationCHROMIUMBucket_header_not_0);
9943 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, program) == 4, 9943 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, program) == 4,
9944 OffsetOf_BindUniformLocationCHROMIUMBucket_program_not_4); 9944 OffsetOf_BindUniformLocationCHROMIUMBucket_program_not_4);
9945 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, location) == 8, 9945 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, location) == 8,
9946 OffsetOf_BindUniformLocationCHROMIUMBucket_location_not_8); 9946 OffsetOf_BindUniformLocationCHROMIUMBucket_location_not_8);
9947 COMPILE_ASSERT( 9947 COMPILE_ASSERT(
9948 offsetof(BindUniformLocationCHROMIUMBucket, name_bucket_id) == 12, 9948 offsetof(BindUniformLocationCHROMIUMBucket, name_bucket_id) == 12,
9949 OffsetOf_BindUniformLocationCHROMIUMBucket_name_bucket_id_not_12); // NOLIN T 9949 OffsetOf_BindUniformLocationCHROMIUMBucket_name_bucket_id_not_12);
9950 9950
9951 struct BindTexImage2DCHROMIUM { 9951 struct BindTexImage2DCHROMIUM {
9952 typedef BindTexImage2DCHROMIUM ValueType; 9952 typedef BindTexImage2DCHROMIUM ValueType;
9953 static const CommandId kCmdId = kBindTexImage2DCHROMIUM; 9953 static const CommandId kCmdId = kBindTexImage2DCHROMIUM;
9954 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 9954 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
9955 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); 9955 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
9956 9956
9957 static uint32 ComputeSize() { 9957 static uint32 ComputeSize() {
9958 return static_cast<uint32>(sizeof(ValueType)); // NOLINT 9958 return static_cast<uint32>(sizeof(ValueType)); // NOLINT
9959 } 9959 }
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
10586 10586
10587 gpu::CommandHeader header; 10587 gpu::CommandHeader header;
10588 }; 10588 };
10589 10589
10590 COMPILE_ASSERT(sizeof(DiscardBackbufferCHROMIUM) == 4, 10590 COMPILE_ASSERT(sizeof(DiscardBackbufferCHROMIUM) == 4,
10591 Sizeof_DiscardBackbufferCHROMIUM_is_not_4); 10591 Sizeof_DiscardBackbufferCHROMIUM_is_not_4);
10592 COMPILE_ASSERT(offsetof(DiscardBackbufferCHROMIUM, header) == 0, 10592 COMPILE_ASSERT(offsetof(DiscardBackbufferCHROMIUM, header) == 0,
10593 OffsetOf_DiscardBackbufferCHROMIUM_header_not_0); 10593 OffsetOf_DiscardBackbufferCHROMIUM_header_not_0);
10594 10594
10595 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 10595 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698