Change resizing strategy for empty TArrays.

If a TArray is completely empty, a call to resize() will now set
the number of elements exactly, instead of adding a 1.5x padding
factor. If it's not empty, we will get the 1.5x growth factor as
before.

Change-Id: Ia715c7e32e411b405dc752bb8b098d3346729244
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/775402
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Herb Derby <herb@google.com>
1 file changed