Go to file
John Stiles 886a904595 Update SkTQSort to use half-open ranges.
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>
2020-07-14 22:13:59 +00:00
animations
bench Update SkTQSort to use half-open ranges. 2020-07-14 22:13:59 +00:00
bin bin/try: automatically set 'git cl issue' when not found 2020-06-25 17:44:01 +00:00
build/fuchsia [fuchsia] Fix fidlc command. 2020-06-10 03:29:24 +00:00
build_overrides Use Dawn's BUILD.gn instead of defining another one for Skia. 2020-04-13 23:26:31 +00:00
client_utils/android Remove SkBitmapRegionDecoder and SkBRDAllocator 2020-06-01 20:56:29 +00:00
demos.skia.org [demos] Move to subdir 2020-06-23 17:29:37 +00:00
dm Update DDL test harness to use GrDirectContexts 2020-07-08 12:33:27 +00:00
docker Support specifying hash and patch_ref in skia-release & skia-wasm-release Dockerfiles 2020-05-06 20:39:04 +00:00
docs/examples Update some of the dox code to GrDirectContext 2020-07-13 13:57:12 +00:00
example Revert "Revert "switch to new filltype for SkPath"" 2019-11-26 17:43:14 +00:00
experimental Add a full build option for SkottieKit 2020-06-29 18:48:14 +00:00
fuzz Add SkRuntimeEffect Fuzzer 2020-07-10 15:54:23 +00:00
gm Runtime effects: Allow null children 2020-07-14 21:33:57 +00:00
gn Remove GrTextureProducer::DetermineDomainMode. 2020-07-14 16:48:46 +00:00
include subclass GrPathSubRun from GrSubRun 2020-07-14 20:49:07 +00:00
infra Add one R preview bot. 2020-07-14 21:22:27 +00:00
modules Revert "Enable effects deserialization except for npm build" 2020-07-10 19:03:14 +00:00
platform_tools turn skottie view into a view group so we can swap out TextureView and SurfaceView 2020-07-09 19:19:30 +00:00
resources [skottie] Pucker & Bloat shape layer vector effect 2020-07-10 18:09:53 +00:00
samplecode more cleanup after removing volatile from bitmap 2020-07-12 19:37:29 +00:00
site Add Flutter as a Skia customer 2020-07-12 15:05:43 +00:00
specs Fix CanvasKit generated documentation to work with emscripten 1.39.16. 2020-05-27 12:23:32 +00:00
src Update SkTQSort to use half-open ranges. 2020-07-14 22:13:59 +00:00
tests Update SkTQSort to use half-open ranges. 2020-07-14 22:13:59 +00:00
third_party Use Wuffs v0.3 by default, not v0.2 2020-07-10 16:10:43 +00:00
tools Update SkTQSort to use half-open ranges. 2020-07-14 22:13:59 +00:00
.clang-format Disable BinPackParameters in .clang-format 2020-03-27 14:32:40 +00:00
.clang-tidy add google-build-namespaces to clang-tidy checks 2018-12-12 16:33:59 +00:00
.gitignore Reland the new module for skia lib for g3 2020-06-23 14:19:13 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS GCC: fix unknown attribute warnings for no_sanitize 2020-07-06 13:52:22 +00:00
BUILD.gn Move makeFontData to SkTypeface_FreeType. 2020-07-14 17:00:23 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Roll Dawn, and update to new TextureDataLayout API. 2020-07-14 16:55:06 +00:00
go.mod Update Go Deps 2020-07-14 05:47:56 +00:00
go.sum Update Go Deps 2020-07-14 05:47:56 +00:00
LICENSE LICENSE file: clean up 2019-11-22 21:59:03 +00:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py PRESUBMIT: Don't check formatting of deleted files 2020-04-08 10:36:09 +00:00
public.bzl Fix Mac GPU references 2020-07-13 18:04:28 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
RELEASE_NOTES.txt Revert "Add GrContext api to update compressed backend textures." 2020-07-14 15:05:58 +00:00
whitespace.txt Whitespace change to re-trigger Mac/iOS tests 2020-02-23 20:55:01 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.