886a904595
C++ algorithms have largely standardized on a [begin, end) half-open range, as seen in standard library containers. SkTQSort now adheres to this model, and takes vec.begin() and vec.end() as its inputs. To avoid confusion between inclusive and half-open ranges inside the implementation, internal helper functions now take "left" and "count" arguments instead of "left"/"right" or "begin"/"end". This avoids any ambiguity. (Although performance was not the main goal, this CL appears to slightly improve our sorting benchmark on my machine.) Change-Id: I5e96b6730be96cf23d001ee0915c69764b2c024a Reviewed-on: https://skia-review.googlesource.com/c/skia/+/302579 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: John Stiles <johnstiles@google.com> |
||
---|---|---|
animations | ||
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 | ||
.clang-format | ||
.clang-tidy | ||
.gitignore | ||
.gn | ||
AUTHORS | ||
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 |
Skia is a complete 2D graphic library for drawing Text, Geometries, and Images. See full details, and build instructions, at https://skia.org.