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

Side by Side Diff: core/cross/buffer.h

Issue 155276: Add ClientInfo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2009, Google Inc. 2 * Copyright 2009, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 virtual bool ConcreteUnlock() = 0; 205 virtual bool ConcreteUnlock() = 0;
206 206
207 private: 207 private:
208 // Takes the data currently allocated and copies it to new data of a different 208 // Takes the data currently allocated and copies it to new data of a different
209 // stride. 209 // stride.
210 // Parameters: 210 // Parameters:
211 // new_stride: stride of new buffer. 211 // new_stride: stride of new buffer.
212 // field_to_remove: address of field. If NULL no field is removed. 212 // field_to_remove: address of field. If NULL no field is removed.
213 bool ReshuffleBuffer(unsigned int new_stride, Field* field_to_remove); 213 bool ReshuffleBuffer(unsigned int new_stride, Field* field_to_remove);
214 214
215 void AdjustBufferMemoryInfo(bool add);
216
215 Features* features_; 217 Features* features_;
216 218
217 // Fields. 219 // Fields.
218 FieldRefArray fields_; 220 FieldRefArray fields_;
219 221
220 // The number of times fields have been added or removed. Streams 222 // The number of times fields have been added or removed. Streams
221 // can track this value so they can know if they need to update. 223 // can track this value so they can know if they need to update.
222 unsigned int field_change_count_; 224 unsigned int field_change_count_;
223 225
224 // The total number of components in all fields. 226 // The total number of components in all fields.
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 Buffer* buffer_; 387 Buffer* buffer_;
386 void* data_; 388 void* data_;
387 bool locked_; 389 bool locked_;
388 390
389 DISALLOW_COPY_AND_ASSIGN(BufferLockHelper); 391 DISALLOW_COPY_AND_ASSIGN(BufferLockHelper);
390 }; 392 };
391 393
392 } // namespace o3d 394 } // namespace o3d
393 395
394 #endif // O3D_CORE_CROSS_BUFFER_H_ 396 #endif // O3D_CORE_CROSS_BUFFER_H_
OLDNEW
« no previous file with comments | « core/build.scons ('k') | core/cross/buffer.cc » ('j') | core/cross/buffer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698