Index: gpu/command_buffer/common/gles2_cmd_format.h |
diff --git a/gpu/command_buffer/common/gles2_cmd_format.h b/gpu/command_buffer/common/gles2_cmd_format.h |
index e4d38f014a8b1537c6da1e9bf1c92d12173ba5d6..944edfd5d0c639a497b95107e9a8ff4f197da49a 100644 |
--- a/gpu/command_buffer/common/gles2_cmd_format.h |
+++ b/gpu/command_buffer/common/gles2_cmd_format.h |
@@ -155,7 +155,7 @@ struct UniformBlockInfo { |
uint32_t binding; // UNIFORM_BLOCK_BINDING |
uint32_t data_size; // UNIFORM_BLOCK_DATA_SIZE |
uint32_t name_offset; // offset from UniformBlocksHeader to start of name. |
- uint32_t name_length; // UNIFORM_BLOCK_BLOCK_NAME_LENGTH |
+ uint32_t name_length; // UNIFORM_BLOCK_NAME_LENGTH |
uint32_t active_uniforms; // UNIFORM_BLOCK_ACTIVE_UNIFORMS |
// offset from UniformBlocksHeader to |active_uniforms| indices. |
uint32_t active_uniform_offset; |
@@ -171,6 +171,37 @@ struct UniformBlocksHeader { |
// UniformBlockInfo uniform_blocks[num_uniform_blocks]; |
}; |
+// The data for one TransformFeedbackVarying from |
+// GetTransformFeedbackVaringCHROMIUM. |
+struct TransformFeedbackVaryingInfo { |
+ uint32_t size; |
+ uint32_t type; |
+ uint32_t name_offset; // offset from Header to start of name. |
+ uint32_t name_length; // including the null terminator. |
+}; |
+ |
+// The format of the bucket filled out by GetTransformFeedbackVaryingsCHROMIUM |
+struct TransformFeedbackVaryingsHeader { |
+ uint32_t num_transform_feedback_varyings; |
+ // TransformFeedbackVaryingInfo varyings[num_transform_feedback_varyings]; |
+}; |
+ |
+// Parameters of a uniform that can be queried through glGetActiveUniformsiv, |
+// but not through glGetActiveUniform. |
+struct UniformES3Info { |
+ int32_t block_index; |
+ int32_t offset; |
+ int32_t array_stride; |
+ int32_t matrix_stride; |
+ int32_t is_row_major; |
+}; |
+ |
+// The format of the bucket filled out by GetUniformsivES3CHROMIUM |
+struct UniformsES3Header { |
+ uint32_t num_uniforms; |
+ // UniformES3Info uniforms[num_uniforms]; |
+}; |
+ |
// The format of QuerySync used by EXT_occlusion_query_boolean |
struct QuerySync { |
void Reset() { |