Yes, I want to reset to 0 to compact after the test runs. SkAutoTArray would ...
12 years, 4 months ago
(2012-08-14 15:10:20 UTC)
#3
Yes, I want to reset to 0 to compact after the test runs. SkAutoTArray would
have to store the count (in the release build) in order to lazily realloc. Even
if it stored the count it seems like a caller may want an optional way to force
the realloc (for Ts that have a constructor and where the desired behavior is to
initialize the array with default objects).
Closed with r5080.
http://codereview.appspot.com/6453116/diff/1/include/core/SkTemplates.h
File include/core/SkTemplates.h (right):
http://codereview.appspot.com/6453116/diff/1/include/core/SkTemplates.h#newco...
include/core/SkTemplates.h:115: */
On 2012/08/14 14:51:42, reed1 wrote:
> explicit SkAutoTArray(int count);
Done.
Issue 6453116: Reduce allocations in RandomPathBench
(Closed)
Created 12 years, 4 months ago by bsalomon
Modified 12 years, 4 months ago
Reviewers: reed1
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 2