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

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

Issue 1331843005: Implemented new fence syncs which replaces the old sync points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some fixes Created 5 years, 3 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
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698