9716414e93
Removes quickContains(SkRect), quickContains(SkRRect), and isRRect(). Replaces these three functions with preApply() that conservatively determines the clip effect up to a single rrect intersection. The major motivation for this is the new GrClipStack implementation. preApply() and apply() will be able to reuse much more code compared to separating the preApply functionality across the older three functions that were removed. Additionally, preApply is able to convey more information for less work, since it can usually determine being skipped or unclipped while determining if the clip is a single rrect. As part of using this API, the attemptQuadOptimiziation and the equivalent rrect optimization are overhauled. Hopefully legibility is improved, and the rrect case is now applied outside of the android framework (but with tighter AA requirements). Bug: skia:10205 Change-Id: I33249dd75a28a611495f87b211cb7ec74ebb7ba4 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/298506 Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Chris Dalton <csmartdalton@google.com> Commit-Queue: Michael Ludwig <michaelludwig@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.