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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 int32_t matrix_stride; | 194 int32_t matrix_stride; |
195 int32_t is_row_major; | 195 int32_t is_row_major; |
196 }; | 196 }; |
197 | 197 |
198 // The format of the bucket filled out by GetUniformsivES3CHROMIUM | 198 // The format of the bucket filled out by GetUniformsivES3CHROMIUM |
199 struct UniformsES3Header { | 199 struct UniformsES3Header { |
200 uint32_t num_uniforms; | 200 uint32_t num_uniforms; |
201 // UniformES3Info uniforms[num_uniforms]; | 201 // UniformES3Info uniforms[num_uniforms]; |
202 }; | 202 }; |
203 | 203 |
| 204 // The format of fence sync tokens. |
| 205 struct SyncToken { |
| 206 int channel_client_id; |
| 207 uint32_t route_id; |
| 208 uint32_t release_count; |
| 209 }; |
| 210 |
204 // The format of QuerySync used by EXT_occlusion_query_boolean | 211 // The format of QuerySync used by EXT_occlusion_query_boolean |
205 struct QuerySync { | 212 struct QuerySync { |
206 void Reset() { | 213 void Reset() { |
207 process_count = 0; | 214 process_count = 0; |
208 result = 0; | 215 result = 0; |
209 } | 216 } |
210 | 217 |
211 base::subtle::Atomic32 process_count; | 218 base::subtle::Atomic32 process_count; |
212 uint64_t result; | 219 uint64_t result; |
213 }; | 220 }; |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 "offset of CreateAndConsumeTextureCHROMIUMImmediate.client_id should be 8"); | 378 "offset of CreateAndConsumeTextureCHROMIUMImmediate.client_id should be 8"); |
372 | 379 |
373 | 380 |
374 #pragma pack(pop) | 381 #pragma pack(pop) |
375 | 382 |
376 } // namespace cmd | 383 } // namespace cmd |
377 } // namespace gles2 | 384 } // namespace gles2 |
378 } // namespace gpu | 385 } // namespace gpu |
379 | 386 |
380 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 387 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
OLD | NEW |