| 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 defines the GLES2 command buffer commands. | 5 // This file defines the GLES2 command buffer commands. |
| 6 | 6 |
| 7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
| 8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
| 9 | 9 |
| 10 | 10 |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 uint32_t name_offset; // offset from Header to start of name. | 179 uint32_t name_offset; // offset from Header to start of name. |
| 180 uint32_t name_length; // including the null terminator. | 180 uint32_t name_length; // including the null terminator. |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 // The format of the bucket filled out by GetTransformFeedbackVaryingsCHROMIUM | 183 // The format of the bucket filled out by GetTransformFeedbackVaryingsCHROMIUM |
| 184 struct TransformFeedbackVaryingsHeader { | 184 struct TransformFeedbackVaryingsHeader { |
| 185 uint32_t num_transform_feedback_varyings; | 185 uint32_t num_transform_feedback_varyings; |
| 186 // TransformFeedbackVaryingInfo varyings[num_transform_feedback_varyings]; | 186 // TransformFeedbackVaryingInfo varyings[num_transform_feedback_varyings]; |
| 187 }; | 187 }; |
| 188 | 188 |
| 189 // Parameters of a uniform that can be queried through glGetActiveUniformsiv, |
| 190 // but not through glGetActiveUniform. |
| 191 struct UniformES3Info { |
| 192 int32_t block_index; |
| 193 int32_t offset; |
| 194 int32_t array_stride; |
| 195 int32_t matrix_stride; |
| 196 int32_t is_row_major; |
| 197 }; |
| 198 |
| 199 // The format of the bucket filled out by GetUniformsivES3CHROMIUM |
| 200 struct UniformsES3Header { |
| 201 uint32_t num_uniforms; |
| 202 // UniformES3Info uniforms[num_uniforms]; |
| 203 }; |
| 204 |
| 189 // The format of QuerySync used by EXT_occlusion_query_boolean | 205 // The format of QuerySync used by EXT_occlusion_query_boolean |
| 190 struct QuerySync { | 206 struct QuerySync { |
| 191 void Reset() { | 207 void Reset() { |
| 192 process_count = 0; | 208 process_count = 0; |
| 193 result = 0; | 209 result = 0; |
| 194 } | 210 } |
| 195 | 211 |
| 196 base::subtle::Atomic32 process_count; | 212 base::subtle::Atomic32 process_count; |
| 197 uint64_t result; | 213 uint64_t result; |
| 198 }; | 214 }; |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 "offset of CreateAndConsumeTextureCHROMIUMImmediate.client_id should be 8"); | 355 "offset of CreateAndConsumeTextureCHROMIUMImmediate.client_id should be 8"); |
| 340 | 356 |
| 341 | 357 |
| 342 #pragma pack(pop) | 358 #pragma pack(pop) |
| 343 | 359 |
| 344 } // namespace cmd | 360 } // namespace cmd |
| 345 } // namespace gles2 | 361 } // namespace gles2 |
| 346 } // namespace gpu | 362 } // namespace gpu |
| 347 | 363 |
| 348 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 364 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
| OLD | NEW |