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

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

Issue 7253052: Execute all GL commands up to the put offset reported by a flush. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 8895 matching lines...) Expand 10 before | Expand all | Expand 10 after
8906 uint32 bucket_id; 8906 uint32 bucket_id;
8907 }; 8907 };
8908 8908
8909 COMPILE_ASSERT(sizeof(RequestExtensionCHROMIUM) == 8, 8909 COMPILE_ASSERT(sizeof(RequestExtensionCHROMIUM) == 8,
8910 Sizeof_RequestExtensionCHROMIUM_is_not_8); 8910 Sizeof_RequestExtensionCHROMIUM_is_not_8);
8911 COMPILE_ASSERT(offsetof(RequestExtensionCHROMIUM, header) == 0, 8911 COMPILE_ASSERT(offsetof(RequestExtensionCHROMIUM, header) == 0,
8912 OffsetOf_RequestExtensionCHROMIUM_header_not_0); 8912 OffsetOf_RequestExtensionCHROMIUM_header_not_0);
8913 COMPILE_ASSERT(offsetof(RequestExtensionCHROMIUM, bucket_id) == 4, 8913 COMPILE_ASSERT(offsetof(RequestExtensionCHROMIUM, bucket_id) == 4,
8914 OffsetOf_RequestExtensionCHROMIUM_bucket_id_not_4); 8914 OffsetOf_RequestExtensionCHROMIUM_bucket_id_not_4);
8915 8915
8916 struct SetLatchCHROMIUM {
8917 typedef SetLatchCHROMIUM ValueType;
8918 static const CommandId kCmdId = kSetLatchCHROMIUM;
8919 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
8920
8921 static uint32 ComputeSize() {
8922 return static_cast<uint32>(sizeof(ValueType)); // NOLINT
8923 }
8924
8925 void SetHeader() {
8926 header.SetCmd<ValueType>();
8927 }
8928
8929 void Init(GLuint _latch_id) {
8930 SetHeader();
8931 latch_id = _latch_id;
8932 }
8933
8934 void* Set(void* cmd, GLuint _latch_id) {
8935 static_cast<ValueType*>(cmd)->Init(_latch_id);
8936 return NextCmdAddress<ValueType>(cmd);
8937 }
8938
8939 gpu::CommandHeader header;
8940 uint32 latch_id;
8941 };
8942
8943 COMPILE_ASSERT(sizeof(SetLatchCHROMIUM) == 8,
8944 Sizeof_SetLatchCHROMIUM_is_not_8);
8945 COMPILE_ASSERT(offsetof(SetLatchCHROMIUM, header) == 0,
8946 OffsetOf_SetLatchCHROMIUM_header_not_0);
8947 COMPILE_ASSERT(offsetof(SetLatchCHROMIUM, latch_id) == 4,
8948 OffsetOf_SetLatchCHROMIUM_latch_id_not_4);
8949
8950 struct WaitLatchCHROMIUM {
8951 typedef WaitLatchCHROMIUM ValueType;
8952 static const CommandId kCmdId = kWaitLatchCHROMIUM;
8953 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
8954
8955 static uint32 ComputeSize() {
8956 return static_cast<uint32>(sizeof(ValueType)); // NOLINT
8957 }
8958
8959 void SetHeader() {
8960 header.SetCmd<ValueType>();
8961 }
8962
8963 void Init(GLuint _latch_id) {
8964 SetHeader();
8965 latch_id = _latch_id;
8966 }
8967
8968 void* Set(void* cmd, GLuint _latch_id) {
8969 static_cast<ValueType*>(cmd)->Init(_latch_id);
8970 return NextCmdAddress<ValueType>(cmd);
8971 }
8972
8973 gpu::CommandHeader header;
8974 uint32 latch_id;
8975 };
8976
8977 COMPILE_ASSERT(sizeof(WaitLatchCHROMIUM) == 8,
8978 Sizeof_WaitLatchCHROMIUM_is_not_8);
8979 COMPILE_ASSERT(offsetof(WaitLatchCHROMIUM, header) == 0,
8980 OffsetOf_WaitLatchCHROMIUM_header_not_0);
8981 COMPILE_ASSERT(offsetof(WaitLatchCHROMIUM, latch_id) == 4,
8982 OffsetOf_WaitLatchCHROMIUM_latch_id_not_4);
8983
8984 struct SetSurfaceCHROMIUM { 8916 struct SetSurfaceCHROMIUM {
8985 typedef SetSurfaceCHROMIUM ValueType; 8917 typedef SetSurfaceCHROMIUM ValueType;
8986 static const CommandId kCmdId = kSetSurfaceCHROMIUM; 8918 static const CommandId kCmdId = kSetSurfaceCHROMIUM;
8987 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 8919 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
8988 8920
8989 static uint32 ComputeSize() { 8921 static uint32 ComputeSize() {
8990 return static_cast<uint32>(sizeof(ValueType)); // NOLINT 8922 return static_cast<uint32>(sizeof(ValueType)); // NOLINT
8991 } 8923 }
8992 8924
8993 void SetHeader() { 8925 void SetHeader() {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
9073 COMPILE_ASSERT(offsetof(GetMultipleIntegervCHROMIUM, results_shm_id) == 16, 9005 COMPILE_ASSERT(offsetof(GetMultipleIntegervCHROMIUM, results_shm_id) == 16,
9074 OffsetOf_GetMultipleIntegervCHROMIUM_results_shm_id_not_16); 9006 OffsetOf_GetMultipleIntegervCHROMIUM_results_shm_id_not_16);
9075 COMPILE_ASSERT(offsetof(GetMultipleIntegervCHROMIUM, results_shm_offset) == 20, 9007 COMPILE_ASSERT(offsetof(GetMultipleIntegervCHROMIUM, results_shm_offset) == 20,
9076 OffsetOf_GetMultipleIntegervCHROMIUM_results_shm_offset_not_20); 9008 OffsetOf_GetMultipleIntegervCHROMIUM_results_shm_offset_not_20);
9077 COMPILE_ASSERT(offsetof(GetMultipleIntegervCHROMIUM, size) == 24, 9009 COMPILE_ASSERT(offsetof(GetMultipleIntegervCHROMIUM, size) == 24,
9078 OffsetOf_GetMultipleIntegervCHROMIUM_size_not_24); 9010 OffsetOf_GetMultipleIntegervCHROMIUM_size_not_24);
9079 9011
9080 9012
9081 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 9013 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
9082 9014
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698