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

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

Issue 116863003: gpu: Reuse transfer buffers more aggresively (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Async upload token part of existing Async command; use separate shared memory to sync async upload … Created 6 years, 10 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 struct QuerySync { 143 struct QuerySync {
144 void Reset() { 144 void Reset() {
145 process_count = 0; 145 process_count = 0;
146 result = 0; 146 result = 0;
147 } 147 }
148 148
149 uint32 process_count; 149 uint32 process_count;
150 uint64 result; 150 uint64 result;
151 }; 151 };
152 152
153 struct AsyncUploadSync {
154 void Reset() {
155 async_token = 0;
156 }
157
158 uint32 async_token;
159 };
160
153 COMPILE_ASSERT(sizeof(ProgramInput) == 20, ProgramInput_size_not_20); 161 COMPILE_ASSERT(sizeof(ProgramInput) == 20, ProgramInput_size_not_20);
154 COMPILE_ASSERT(offsetof(ProgramInput, type) == 0, 162 COMPILE_ASSERT(offsetof(ProgramInput, type) == 0,
155 OffsetOf_ProgramInput_type_not_0); 163 OffsetOf_ProgramInput_type_not_0);
156 COMPILE_ASSERT(offsetof(ProgramInput, size) == 4, 164 COMPILE_ASSERT(offsetof(ProgramInput, size) == 4,
157 OffsetOf_ProgramInput_size_not_4); 165 OffsetOf_ProgramInput_size_not_4);
158 COMPILE_ASSERT(offsetof(ProgramInput, location_offset) == 8, 166 COMPILE_ASSERT(offsetof(ProgramInput, location_offset) == 8,
159 OffsetOf_ProgramInput_location_offset_not_8); 167 OffsetOf_ProgramInput_location_offset_not_8);
160 COMPILE_ASSERT(offsetof(ProgramInput, name_offset) == 12, 168 COMPILE_ASSERT(offsetof(ProgramInput, name_offset) == 12,
161 OffsetOf_ProgramInput_name_offset_not_12); 169 OffsetOf_ProgramInput_name_offset_not_12);
162 COMPILE_ASSERT(offsetof(ProgramInput, name_length) == 16, 170 COMPILE_ASSERT(offsetof(ProgramInput, name_length) == 16,
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 CommandHeader header; 446 CommandHeader header;
439 }; 447 };
440 448
441 #pragma pack(pop) 449 #pragma pack(pop)
442 450
443 } // namespace cmd 451 } // namespace cmd
444 } // namespace gles2 452 } // namespace gles2
445 } // namespace gpu 453 } // namespace gpu
446 454
447 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ 455 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698