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

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

Issue 7623001: Rename and document glCommandBufferEnableCHROMIUM (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix stuff Created 9 years, 4 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 8701 matching lines...) Expand 10 before | Expand all | Expand 10 after
8712 OffsetOf_RegisterSharedIdsCHROMIUM_header_not_0); 8712 OffsetOf_RegisterSharedIdsCHROMIUM_header_not_0);
8713 COMPILE_ASSERT(offsetof(RegisterSharedIdsCHROMIUM, namespace_id) == 4, 8713 COMPILE_ASSERT(offsetof(RegisterSharedIdsCHROMIUM, namespace_id) == 4,
8714 OffsetOf_RegisterSharedIdsCHROMIUM_namespace_id_not_4); 8714 OffsetOf_RegisterSharedIdsCHROMIUM_namespace_id_not_4);
8715 COMPILE_ASSERT(offsetof(RegisterSharedIdsCHROMIUM, n) == 8, 8715 COMPILE_ASSERT(offsetof(RegisterSharedIdsCHROMIUM, n) == 8,
8716 OffsetOf_RegisterSharedIdsCHROMIUM_n_not_8); 8716 OffsetOf_RegisterSharedIdsCHROMIUM_n_not_8);
8717 COMPILE_ASSERT(offsetof(RegisterSharedIdsCHROMIUM, ids_shm_id) == 12, 8717 COMPILE_ASSERT(offsetof(RegisterSharedIdsCHROMIUM, ids_shm_id) == 12,
8718 OffsetOf_RegisterSharedIdsCHROMIUM_ids_shm_id_not_12); 8718 OffsetOf_RegisterSharedIdsCHROMIUM_ids_shm_id_not_12);
8719 COMPILE_ASSERT(offsetof(RegisterSharedIdsCHROMIUM, ids_shm_offset) == 16, 8719 COMPILE_ASSERT(offsetof(RegisterSharedIdsCHROMIUM, ids_shm_offset) == 16,
8720 OffsetOf_RegisterSharedIdsCHROMIUM_ids_shm_offset_not_16); 8720 OffsetOf_RegisterSharedIdsCHROMIUM_ids_shm_offset_not_16);
8721 8721
8722 struct CommandBufferEnableCHROMIUM { 8722 struct EnableFeatureCHROMIUM {
8723 typedef CommandBufferEnableCHROMIUM ValueType; 8723 typedef EnableFeatureCHROMIUM ValueType;
8724 static const CommandId kCmdId = kCommandBufferEnableCHROMIUM; 8724 static const CommandId kCmdId = kEnableFeatureCHROMIUM;
8725 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 8725 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
8726 8726
8727 typedef GLint Result; 8727 typedef GLint Result;
8728 8728
8729 static uint32 ComputeSize() { 8729 static uint32 ComputeSize() {
8730 return static_cast<uint32>(sizeof(ValueType)); // NOLINT 8730 return static_cast<uint32>(sizeof(ValueType)); // NOLINT
8731 } 8731 }
8732 8732
8733 void SetHeader() { 8733 void SetHeader() {
8734 header.SetCmd<ValueType>(); 8734 header.SetCmd<ValueType>();
(...skipping 14 matching lines...) Expand all
8749 cmd)->Init(_bucket_id, _result_shm_id, _result_shm_offset); 8749 cmd)->Init(_bucket_id, _result_shm_id, _result_shm_offset);
8750 return NextCmdAddress<ValueType>(cmd); 8750 return NextCmdAddress<ValueType>(cmd);
8751 } 8751 }
8752 8752
8753 gpu::CommandHeader header; 8753 gpu::CommandHeader header;
8754 uint32 bucket_id; 8754 uint32 bucket_id;
8755 uint32 result_shm_id; 8755 uint32 result_shm_id;
8756 uint32 result_shm_offset; 8756 uint32 result_shm_offset;
8757 }; 8757 };
8758 8758
8759 COMPILE_ASSERT(sizeof(CommandBufferEnableCHROMIUM) == 16, 8759 COMPILE_ASSERT(sizeof(EnableFeatureCHROMIUM) == 16,
8760 Sizeof_CommandBufferEnableCHROMIUM_is_not_16); 8760 Sizeof_EnableFeatureCHROMIUM_is_not_16);
8761 COMPILE_ASSERT(offsetof(CommandBufferEnableCHROMIUM, header) == 0, 8761 COMPILE_ASSERT(offsetof(EnableFeatureCHROMIUM, header) == 0,
8762 OffsetOf_CommandBufferEnableCHROMIUM_header_not_0); 8762 OffsetOf_EnableFeatureCHROMIUM_header_not_0);
8763 COMPILE_ASSERT(offsetof(CommandBufferEnableCHROMIUM, bucket_id) == 4, 8763 COMPILE_ASSERT(offsetof(EnableFeatureCHROMIUM, bucket_id) == 4,
8764 OffsetOf_CommandBufferEnableCHROMIUM_bucket_id_not_4); 8764 OffsetOf_EnableFeatureCHROMIUM_bucket_id_not_4);
8765 COMPILE_ASSERT(offsetof(CommandBufferEnableCHROMIUM, result_shm_id) == 8, 8765 COMPILE_ASSERT(offsetof(EnableFeatureCHROMIUM, result_shm_id) == 8,
8766 OffsetOf_CommandBufferEnableCHROMIUM_result_shm_id_not_8); 8766 OffsetOf_EnableFeatureCHROMIUM_result_shm_id_not_8);
8767 COMPILE_ASSERT(offsetof(CommandBufferEnableCHROMIUM, result_shm_offset) == 12, 8767 COMPILE_ASSERT(offsetof(EnableFeatureCHROMIUM, result_shm_offset) == 12,
8768 OffsetOf_CommandBufferEnableCHROMIUM_result_shm_offset_not_12); 8768 OffsetOf_EnableFeatureCHROMIUM_result_shm_offset_not_12);
8769 8769
8770 struct ResizeCHROMIUM { 8770 struct ResizeCHROMIUM {
8771 typedef ResizeCHROMIUM ValueType; 8771 typedef ResizeCHROMIUM ValueType;
8772 static const CommandId kCmdId = kResizeCHROMIUM; 8772 static const CommandId kCmdId = kResizeCHROMIUM;
8773 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 8773 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
8774 8774
8775 static uint32 ComputeSize() { 8775 static uint32 ComputeSize() {
8776 return static_cast<uint32>(sizeof(ValueType)); // NOLINT 8776 return static_cast<uint32>(sizeof(ValueType)); // NOLINT
8777 } 8777 }
8778 8778
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
9105 }; 9105 };
9106 9106
9107 COMPILE_ASSERT(sizeof(Placeholder452CHROMIUM) == 4, 9107 COMPILE_ASSERT(sizeof(Placeholder452CHROMIUM) == 4,
9108 Sizeof_Placeholder452CHROMIUM_is_not_4); 9108 Sizeof_Placeholder452CHROMIUM_is_not_4);
9109 COMPILE_ASSERT(offsetof(Placeholder452CHROMIUM, header) == 0, 9109 COMPILE_ASSERT(offsetof(Placeholder452CHROMIUM, header) == 0,
9110 OffsetOf_Placeholder452CHROMIUM_header_not_0); 9110 OffsetOf_Placeholder452CHROMIUM_header_not_0);
9111 9111
9112 9112
9113 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 9113 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
9114 9114
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_unittest.cc ('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