commit | 3a73f6bcb9e024dc09d37442049941fe3a30cc50 | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Wed Nov 08 11:54:48 2023 -0500 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Wed Nov 08 17:51:33 2023 +0000 |
tree | 3ef1cc9c663cf834c40892d507dc814b3df554e6 | |
parent | 8c4f557941ae575bd3e0b109fe731af8b5e71752 [diff] |
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>