981e4a756c
Adds quick accepts to the switch statement in GrStrokeHardwareTessellator::prepare() that allow us to write out most tessellation patches immediately. This avoids making function calls into recursive methods as well as avoiding some of their checks that aren't necessary the first time around. Also adds a microbench that mimics the MotionMark "paths" benchmark and measures our CPU-side prepare() time. This shaves up to 30% off the microbenchmarks. Bug: chromium:1172543 Change-Id: Idc93bebb79db9898a4ec241b1f6c8b9eb9ba7da3 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/372602 Commit-Queue: Chris Dalton <csmartdalton@google.com> Reviewed-by: John Stiles <johnstiles@google.com> |
||
---|---|---|
animations | ||
bazel | ||
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 | ||
.bazelignore | ||
.clang-format | ||
.clang-tidy | ||
.gitignore | ||
.gn | ||
AUTHORS | ||
BUILD.bazel | ||
BUILD.gn | ||
codereview.settings | ||
CONTRIBUTING | ||
CQ_COMMITTERS | ||
DEPS | ||
DIR_METADATA | ||
go.mod | ||
go.sum | ||
LICENSE | ||
PRESUBMIT.py | ||
public.bzl | ||
README | ||
README.chromium | ||
RELEASE_NOTES.txt | ||
whitespace.txt | ||
WORKSPACE.bazel |
Skia is a complete 2D graphic library for drawing Text, Geometries, and Images. See full details, and build instructions, at https://skia.org.