Go to file
Michael Ludwig a18613d120 Add halfWidth/halfHeight functions to SkRectPriv
These effectively compute width/2 or height/2, but switch operations
around so that it's less likely to overflow on finite rects that would
have overflows in width or height.

Bug: skia:1160678
Change-Id: Ic93ca0c1d12598163b3dd48a5e8ba0ac7903301f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/344968
Commit-Queue: Mike Reed <reed@google.com>
Auto-Submit: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Mike Reed <reed@google.com>
2020-12-22 20:42:43 +00:00
animations
bazel bazel baby steps 2020-09-14 15:18:32 +00:00
bench SkSL: In the front-end, rename PipelineStage to RuntimeEffect 2020-12-21 21:23:17 +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 Port to ANGLE's GN files 2020-09-11 15:22:34 +00:00
client_utils/android Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
demos.skia.org [canvaskit] Remove Sk from nearly all function/type names. 2020-10-07 21:01:32 +00:00
dm Reland "SkAndroidCodec: Support decoding all frames" 2020-11-16 16:55:48 +00:00
docker [canvaskit,pathkit] Update to emsdk 2.0 2020-08-20 14:55:50 +00:00
docs/examples Use samplingoptions for bitmap shader 2020-12-12 17:08:11 +00:00
example Reland "Remove use of legacy display globals." 2020-10-05 19:13:58 +00:00
experimental Fix C API example, ensure the C API example is built in CI 2020-12-15 16:38:42 +00:00
fuzz SkSL: In the front-end, rename PipelineStage to RuntimeEffect 2020-12-21 21:23:17 +00:00
gm SkAnimatedImage: Always respect exif orientation 2020-12-21 16:39:12 +00:00
gn Elide return expression temp-var in vardecl-less blocks. 2020-12-22 19:33:12 +00:00
include Add halfWidth/halfHeight functions to SkRectPriv 2020-12-22 20:42:43 +00:00
infra Update SKP version 2020-12-20 06:39:21 +00:00
modules [svg] Relative postioning support for text 2020-12-22 19:19:12 +00:00
platform_tools Add SkSpan support to the Skia LLDB visualizer. 2020-12-22 18:10:12 +00:00
resources Simplify raincloud particle effect 2020-12-22 20:39:38 +00:00
samplecode Starting to hide setFilterQuality 2020-12-19 20:56:50 +00:00
site Simplify raincloud particle effect 2020-12-22 20:39:38 +00:00
specs Fix CanvasKit generated documentation to work with emscripten 1.39.16. 2020-05-27 12:23:32 +00:00
src Add halfWidth/halfHeight functions to SkRectPriv 2020-12-22 20:42:43 +00:00
tests Add halfWidth/halfHeight functions to SkRectPriv 2020-12-22 20:42:43 +00:00
third_party Update etc1.cpp. 2020-12-16 17:57:26 +00:00
tools Revert "Enable GrTessellationPathRenderer by default" 2020-12-18 15:46:30 +00:00
.bazelignore bazel baby steps 2020-09-14 15:18:32 +00:00
.clang-format Disable BinPackParameters in .clang-format 2020-03-27 14:32:40 +00:00
.clang-tidy Disable ClangTidy namespace comments for short blocks. 2020-08-24 14:01:22 +00:00
.gitignore bazel baby steps 2020-09-14 15:18:32 +00:00
.gn
AUTHORS Fix issues with latest GN 2020-11-07 13:55:45 +00:00
BUILD.bazel bazel baby steps 2020-09-14 15:18:32 +00:00
BUILD.gn Add .rte -> .skvm unit test framework 2020-12-22 17:59:42 +00:00
codereview.settings
CONTRIBUTING
CQ_COMMITTERS
DEPS Roll Dawn from 5d4fd88a7403 to 3272f9da3787 (3 revisions) 2020-12-22 04:38:48 +00:00
go.mod Update go.skia.org/infra in go.mod/go.sum 2020-12-21 20:31:07 +00:00
go.sum Update go.skia.org/infra in go.mod/go.sum 2020-12-21 20:31:07 +00:00
LICENSE
OWNERS
PRESUBMIT.py Add presubmit check for git conflict markers 2020-12-16 17:51:16 +00:00
public.bzl remove very oldest SkVM testing 2020-12-17 21:17:46 +00:00
README
README.chromium
RELEASE_NOTES.txt SkAnimatedImage: Always respect exif orientation 2020-12-21 16:39:12 +00:00
whitespace.txt Whitespace change to re-trigger Mac/iOS tests 2020-02-23 20:55:01 +00:00
WORKSPACE.bazel bazel baby steps 2020-09-14 15:18:32 +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.