Go to file
Michael Ludwig 5a4709da2c Fix EllipticalRRectEffect precision for large corner radii
Modifies rrects_* GMs to draw a clipped rrect with
a large radius. The _effect case would draw with a blurry
edge before the fixes.

1. Adds scaling to the elliptical effects key and activate
it when the rrect radii are large enough. This fixes the
precision issue with the elliptical effect variant.
2. Uses SkRRectPriv::IsSimpleCircular() to choose the
circular variant over elliptical, which uses a tolerance
between X and Y radii. This avoids the issue since the
circular effect doesn't suffer in this case.

Confirmed that both fixes work independently of each other.

Cq-Do-Not-Cancel-Tryjobs: true
Bug: skia:10456
Change-Id: Ifef63356e31f46ec1546684636d9667b90bcef9b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/521523
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
2022-03-18 18:30:29 +00:00
bazel [bazel] Test enforcement of IWYU on SkSVG backend. 2022-03-16 14:20:14 +00:00
bench [graphite] Add support to nanobench for Graphite. 2022-03-14 20:10:30 +00:00
bin Handle 'aarch64' from platform.machine() 2022-03-01 13:10:59 +00:00
build/fuchsia [fuchsia] Fix fidlc command. 2020-06-10 03:29:24 +00:00
build_overrides Add Abseil dependency for Dawn 2021-09-22 22:05:32 +00:00
client_utils/android Make class members that are static constexpr also be inline. 2021-10-11 16:22:59 +00:00
demos.skia.org [canvaskit] Add in fillText to spreadsheet demo for comparison 2022-02-15 15:35:43 +00:00
dm Add CurrestTestHarness helper method. 2022-03-10 18:05:28 +00:00
docker [canvaskit] Enable Debugger bindings for autobuild 2022-03-08 17:42:37 +00:00
docs/examples Reland "Add kR8_unorm_SkColorType" 2022-02-10 18:00:19 +00:00
example [bazel] Support Vulkan 2022-03-08 21:21:17 +00:00
experimental [graphite] Better encapsulate SkPipelineData's uniform data 2022-03-18 18:00:38 +00:00
fuzz Reland "[includes] Remove link between SkImage.h and SkImageEncoder.h" 2022-03-10 04:47:51 +00:00
gm Fix EllipticalRRectEffect precision for large corner radii 2022-03-18 18:30:29 +00:00
gn [graphite] Make stencil-and-cover stencil settings accessible 2022-03-18 17:22:04 +00:00
include Add glGetFloatv and glSamplerParameterf to GrGLInterface. 2022-03-18 15:23:11 +00:00
infra [infra] Use ATL Golo Linux machines 2022-03-18 13:34:04 +00:00
modules [skottie] Remove tracking fix guards 2022-03-16 14:43:11 +00:00
platform_tools Refactor SkQPTestRunner to support running SkSL error tests. 2022-03-18 16:11:00 +00:00
resources [skottie] Add support for text stroke line join 2022-03-11 15:17:16 +00:00
samplecode Reland "[includes] Remove link between SkImage.h and SkImageEncoder.h" 2022-03-10 04:47:51 +00:00
site Remove obsolete python2 references. 2022-03-16 19:56:37 +00:00
specs [infra] Port serve.py from Python2 to 3 2021-08-31 15:28:19 +00:00
src Fix EllipticalRRectEffect precision for large corner radii 2022-03-18 18:30:29 +00:00
tests [graphite] Better encapsulate SkPipelineData's uniform data 2022-03-18 18:00:38 +00:00
third_party [bazel] Support Vulkan 2022-03-08 21:21:17 +00:00
toolchain [bazel] Use toolchain features to opt files into being IWYU compliant. 2022-03-16 13:09:46 +00:00
tools Add glGetFloatv and glSamplerParameterf to GrGLInterface. 2022-03-18 15:23:11 +00:00
.bazelrc [canvaskit] Add more features to Bazel build 2022-02-04 21:33:20 +00:00
.bazelversion [canvaskit] Add skottie to Bazel build 2022-02-04 19:18:27 +00:00
.clang-format no more bin packing in .clang-format 2021-03-04 17:22:50 +00:00
.clang-tidy Disable ClangTidy namespace comments for short blocks. 2020-08-24 14:01:22 +00:00
.gitignore Add .vscode to the default gitignore list. 2021-10-13 15:23:02 +00:00
.gn Pre-emptive fix for upcoming ANGLE change. 2021-01-08 17:23:52 +00:00
.vpython [python3] Reland recipes -> python3 changes 2021-12-01 13:04:03 +00:00
AUTHORS Remove obsolete sk_cf_obj 2022-03-11 05:59:16 +00:00
BUILD.bazel [bazel] Compile gms for wasm and WebGL 2022-02-09 18:56:17 +00:00
BUILD.gn Add CurrestTestHarness helper method. 2022-03-10 18:05:28 +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 ANGLE from 98bb4f32ded0 to 8a2a4fa70f16 (7 revisions) 2022-03-18 05:29:34 +00:00
DIR_METADATA Move metadata in OWNERS files to DIR_METADATA files 2021-02-02 23:41:54 +00:00
go_repositories.bzl [bazel] Use bazel to build task drivers 2022-03-03 16:12:18 +00:00
go.mod [bazel] Make use of test_on_env to spin up server for gms 2022-02-28 14:05:54 +00:00
go.sum [bazel] Make use of test_on_env to spin up server for gms 2022-02-28 14:05:54 +00:00
LICENSE LICENSE file: clean up 2019-11-22 21:59:03 +00:00
OWNERS [infra] Add wildcard OWNERS 2021-08-30 19:19:34 +00:00
OWNERS.android Update OWNERS.android with more details 2022-03-16 18:13:33 +00:00
package-lock.json [bazel] Make custom karma_test rule 2022-02-23 14:53:01 +00:00
package.json [bazel] Make custom karma_test rule 2022-02-23 14:53:01 +00:00
PRESUBMIT.py Remove AUTHORS check from PRESUBMIT.py 2021-09-30 14:12:18 +00:00
public.bzl remove jpeg from android builds flagged with no_codec 2022-02-14 19:29:10 +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 Add glGetFloatv and glSamplerParameterf to GrGLInterface. 2022-03-18 15:23:11 +00:00
whitespace.txt Push shaders.skia.org. 2022-01-19 21:46:16 +00:00
WORKSPACE.bazel [bazel] Use bazel to build task drivers 2022-03-03 16:12:18 +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.