f4bda743ff
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> |
||
---|---|---|
animations | ||
bazel | ||
bench | ||
bin | ||
build/fuchsia | ||
build_overrides | ||
client_utils/android | ||
demos.skia.org | ||
dm | ||
docker | ||
docs/examples | ||
example | ||
experimental | ||
fuzz | ||
gm | ||
gn | ||
include | ||
infra | ||
modules | ||
platform_tools | ||
resources | ||
samplecode | ||
site | ||
specs | ||
src | ||
tests | ||
third_party | ||
tools | ||
.bazelignore | ||
.clang-format | ||
.clang-tidy | ||
.gitignore | ||
.gn | ||
AUTHORS | ||
BUILD.bazel | ||
BUILD.gn | ||
codereview.settings | ||
CONTRIBUTING | ||
CQ_COMMITTERS | ||
DEPS | ||
go.mod | ||
go.sum | ||
LICENSE | ||
OWNERS | ||
PRESUBMIT.py | ||
public.bzl | ||
README | ||
README.chromium | ||
RELEASE_NOTES.txt | ||
whitespace.txt | ||
WORKSPACE.bazel |
Skia is a complete 2D graphic library for drawing Text, Geometries, and Images. See full details, and build instructions, at https://skia.org.