skia2/tools/flags
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
..
CommandLineFlags.cpp Update SkTQSort to use half-open ranges. 2020-07-14 22:13:59 +00:00
CommandLineFlags.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
CommonFlags.h Add a flag for suppressing tessellation shaders 2020-04-23 18:35:48 +00:00
CommonFlagsAA.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
CommonFlagsConfig.cpp Add D3D support for MSAA 2020-07-07 20:34:15 +00:00
CommonFlagsConfig.h Add option to DDL test harness to better match OOP-R behavior 2020-06-16 12:30:41 +00:00
CommonFlagsGpu.cpp Allow printf-style formatting to be used in SK_ABORT. 2020-06-12 20:26:34 +00:00
CommonFlagsImages.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00