OLD | NEW |
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 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 4869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4880 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 4880 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
4881 } | 4881 } |
4882 | 4882 |
4883 void SetHeader() { | 4883 void SetHeader() { |
4884 header.SetCmd<ValueType>(); | 4884 header.SetCmd<ValueType>(); |
4885 } | 4885 } |
4886 | 4886 |
4887 void Init( | 4887 void Init( |
4888 GLint _x, GLint _y, GLsizei _width, GLsizei _height, GLenum _format, | 4888 GLint _x, GLint _y, GLsizei _width, GLsizei _height, GLenum _format, |
4889 GLenum _type, uint32 _pixels_shm_id, uint32 _pixels_shm_offset, | 4889 GLenum _type, uint32 _pixels_shm_id, uint32 _pixels_shm_offset, |
4890 uint32 _result_shm_id, uint32 _result_shm_offset) { | 4890 uint32 _result_shm_id, uint32 _result_shm_offset, GLboolean _async) { |
4891 SetHeader(); | 4891 SetHeader(); |
4892 x = _x; | 4892 x = _x; |
4893 y = _y; | 4893 y = _y; |
4894 width = _width; | 4894 width = _width; |
4895 height = _height; | 4895 height = _height; |
4896 format = _format; | 4896 format = _format; |
4897 type = _type; | 4897 type = _type; |
4898 pixels_shm_id = _pixels_shm_id; | 4898 pixels_shm_id = _pixels_shm_id; |
4899 pixels_shm_offset = _pixels_shm_offset; | 4899 pixels_shm_offset = _pixels_shm_offset; |
4900 result_shm_id = _result_shm_id; | 4900 result_shm_id = _result_shm_id; |
4901 result_shm_offset = _result_shm_offset; | 4901 result_shm_offset = _result_shm_offset; |
| 4902 async = _async; |
4902 } | 4903 } |
4903 | 4904 |
4904 void* Set( | 4905 void* Set( |
4905 void* cmd, GLint _x, GLint _y, GLsizei _width, GLsizei _height, | 4906 void* cmd, GLint _x, GLint _y, GLsizei _width, GLsizei _height, |
4906 GLenum _format, GLenum _type, uint32 _pixels_shm_id, | 4907 GLenum _format, GLenum _type, uint32 _pixels_shm_id, |
4907 uint32 _pixels_shm_offset, uint32 _result_shm_id, | 4908 uint32 _pixels_shm_offset, uint32 _result_shm_id, |
4908 uint32 _result_shm_offset) { | 4909 uint32 _result_shm_offset, GLboolean _async) { |
4909 static_cast<ValueType*>( | 4910 static_cast<ValueType*>( |
4910 cmd)->Init( | 4911 cmd)->Init( |
4911 _x, _y, _width, _height, _format, _type, _pixels_shm_id, | 4912 _x, _y, _width, _height, _format, _type, _pixels_shm_id, |
4912 _pixels_shm_offset, _result_shm_id, _result_shm_offset); | 4913 _pixels_shm_offset, _result_shm_id, _result_shm_offset, _async); |
4913 return NextCmdAddress<ValueType>(cmd); | 4914 return NextCmdAddress<ValueType>(cmd); |
4914 } | 4915 } |
4915 | 4916 |
4916 gpu::CommandHeader header; | 4917 gpu::CommandHeader header; |
4917 int32 x; | 4918 int32 x; |
4918 int32 y; | 4919 int32 y; |
4919 int32 width; | 4920 int32 width; |
4920 int32 height; | 4921 int32 height; |
4921 uint32 format; | 4922 uint32 format; |
4922 uint32 type; | 4923 uint32 type; |
4923 uint32 pixels_shm_id; | 4924 uint32 pixels_shm_id; |
4924 uint32 pixels_shm_offset; | 4925 uint32 pixels_shm_offset; |
4925 uint32 result_shm_id; | 4926 uint32 result_shm_id; |
4926 uint32 result_shm_offset; | 4927 uint32 result_shm_offset; |
| 4928 uint32 async; |
4927 }; | 4929 }; |
4928 | 4930 |
4929 COMPILE_ASSERT(sizeof(ReadPixels) == 44, | 4931 COMPILE_ASSERT(sizeof(ReadPixels) == 48, |
4930 Sizeof_ReadPixels_is_not_44); | 4932 Sizeof_ReadPixels_is_not_48); |
4931 COMPILE_ASSERT(offsetof(ReadPixels, header) == 0, | 4933 COMPILE_ASSERT(offsetof(ReadPixels, header) == 0, |
4932 OffsetOf_ReadPixels_header_not_0); | 4934 OffsetOf_ReadPixels_header_not_0); |
4933 COMPILE_ASSERT(offsetof(ReadPixels, x) == 4, | 4935 COMPILE_ASSERT(offsetof(ReadPixels, x) == 4, |
4934 OffsetOf_ReadPixels_x_not_4); | 4936 OffsetOf_ReadPixels_x_not_4); |
4935 COMPILE_ASSERT(offsetof(ReadPixels, y) == 8, | 4937 COMPILE_ASSERT(offsetof(ReadPixels, y) == 8, |
4936 OffsetOf_ReadPixels_y_not_8); | 4938 OffsetOf_ReadPixels_y_not_8); |
4937 COMPILE_ASSERT(offsetof(ReadPixels, width) == 12, | 4939 COMPILE_ASSERT(offsetof(ReadPixels, width) == 12, |
4938 OffsetOf_ReadPixels_width_not_12); | 4940 OffsetOf_ReadPixels_width_not_12); |
4939 COMPILE_ASSERT(offsetof(ReadPixels, height) == 16, | 4941 COMPILE_ASSERT(offsetof(ReadPixels, height) == 16, |
4940 OffsetOf_ReadPixels_height_not_16); | 4942 OffsetOf_ReadPixels_height_not_16); |
4941 COMPILE_ASSERT(offsetof(ReadPixels, format) == 20, | 4943 COMPILE_ASSERT(offsetof(ReadPixels, format) == 20, |
4942 OffsetOf_ReadPixels_format_not_20); | 4944 OffsetOf_ReadPixels_format_not_20); |
4943 COMPILE_ASSERT(offsetof(ReadPixels, type) == 24, | 4945 COMPILE_ASSERT(offsetof(ReadPixels, type) == 24, |
4944 OffsetOf_ReadPixels_type_not_24); | 4946 OffsetOf_ReadPixels_type_not_24); |
4945 COMPILE_ASSERT(offsetof(ReadPixels, pixels_shm_id) == 28, | 4947 COMPILE_ASSERT(offsetof(ReadPixels, pixels_shm_id) == 28, |
4946 OffsetOf_ReadPixels_pixels_shm_id_not_28); | 4948 OffsetOf_ReadPixels_pixels_shm_id_not_28); |
4947 COMPILE_ASSERT(offsetof(ReadPixels, pixels_shm_offset) == 32, | 4949 COMPILE_ASSERT(offsetof(ReadPixels, pixels_shm_offset) == 32, |
4948 OffsetOf_ReadPixels_pixels_shm_offset_not_32); | 4950 OffsetOf_ReadPixels_pixels_shm_offset_not_32); |
4949 COMPILE_ASSERT(offsetof(ReadPixels, result_shm_id) == 36, | 4951 COMPILE_ASSERT(offsetof(ReadPixels, result_shm_id) == 36, |
4950 OffsetOf_ReadPixels_result_shm_id_not_36); | 4952 OffsetOf_ReadPixels_result_shm_id_not_36); |
4951 COMPILE_ASSERT(offsetof(ReadPixels, result_shm_offset) == 40, | 4953 COMPILE_ASSERT(offsetof(ReadPixels, result_shm_offset) == 40, |
4952 OffsetOf_ReadPixels_result_shm_offset_not_40); | 4954 OffsetOf_ReadPixels_result_shm_offset_not_40); |
| 4955 COMPILE_ASSERT(offsetof(ReadPixels, async) == 44, |
| 4956 OffsetOf_ReadPixels_async_not_44); |
4953 | 4957 |
4954 struct ReleaseShaderCompiler { | 4958 struct ReleaseShaderCompiler { |
4955 typedef ReleaseShaderCompiler ValueType; | 4959 typedef ReleaseShaderCompiler ValueType; |
4956 static const CommandId kCmdId = kReleaseShaderCompiler; | 4960 static const CommandId kCmdId = kReleaseShaderCompiler; |
4957 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4961 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
4958 | 4962 |
4959 static uint32 ComputeSize() { | 4963 static uint32 ComputeSize() { |
4960 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 4964 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
4961 } | 4965 } |
4962 | 4966 |
(...skipping 6066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11029 COMPILE_ASSERT(sizeof(DrawBuffersEXTImmediate) == 8, | 11033 COMPILE_ASSERT(sizeof(DrawBuffersEXTImmediate) == 8, |
11030 Sizeof_DrawBuffersEXTImmediate_is_not_8); | 11034 Sizeof_DrawBuffersEXTImmediate_is_not_8); |
11031 COMPILE_ASSERT(offsetof(DrawBuffersEXTImmediate, header) == 0, | 11035 COMPILE_ASSERT(offsetof(DrawBuffersEXTImmediate, header) == 0, |
11032 OffsetOf_DrawBuffersEXTImmediate_header_not_0); | 11036 OffsetOf_DrawBuffersEXTImmediate_header_not_0); |
11033 COMPILE_ASSERT(offsetof(DrawBuffersEXTImmediate, count) == 4, | 11037 COMPILE_ASSERT(offsetof(DrawBuffersEXTImmediate, count) == 4, |
11034 OffsetOf_DrawBuffersEXTImmediate_count_not_4); | 11038 OffsetOf_DrawBuffersEXTImmediate_count_not_4); |
11035 | 11039 |
11036 | 11040 |
11037 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 11041 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
11038 | 11042 |
OLD | NEW |