skia2/modules
John Stiles f4bda743ff Rename SkTArray::reserve to reserve_back.
The semantics of `vector::reserve` and `SkTArray::reserve` were not the
same. SkTArray::reserve takes a delta over the current array size,
whereas vector takes a total array size. This could lead to subtle
errors with over- or under-reservation, hurting performance.

This CL renames `SkTArray::reserve` to `SkTArray::reserve_back` to give
the SkTArray behavior a distinct (hopefully easily understandable) name,
leaving its functionality as-is.

Change-Id: Icbd3114bb317fd5f307f393c02ae6fb6f83764e9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/326956
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
2020-10-14 21:42:11 +00:00
..
audioplayer SFML [1] backed for SkAudioPlayer/Linux 2020-08-18 17:58:55 +00:00
canvaskit Revert "Remove GrContext" 2020-10-14 18:30:13 +00:00
particles Remove unsafe compiler methods related to external values 2020-09-24 14:12:08 +00:00
pathkit [pathkit] update to build with emsdk 2.0.6 2020-10-08 17:26:32 +00:00
skottie Add SkImageFilters::Blend rename for Xfermode filter 2020-10-13 14:28:26 +00:00
skparagraph Rename SkTArray::reserve to reserve_back. 2020-10-14 21:42:11 +00:00
skplaintexteditor Enable ClangTidy check readability-const-return-type. 2020-08-07 17:42:38 +00:00
skresources [skottie] Initial audio layer plumbing 2020-08-12 13:03:16 +00:00
sksg [sksg] Fix uninitialized DashEffect attribute 2020-10-01 20:25:27 +00:00
skshaper remove SkMakeSpan use ctor parameter deduction 2020-10-02 01:41:03 +00:00