2753b12ff5
I added 3 tests, one using the drawRect API naively, one using drawRect with a Malloc'd array, and one using the drawRect4f. rough local measurements: - [baseline with tip of tree code]: 50ms - naive drawRect: 40ms - drawRect with malloc: 28ms - drawRect4f: 27ms I also tried the benchmarks locally with taking in paint as a const reference. I did not see any changes, but that could just be small sample size. I plan to land the code as is for now, collect a bit of data in Perf and then try landing the const reference stuff and see if we get something measurable. To aid this, I added in a helper list of tests to only run some benchmarks easily. Change-Id: I790b2d6fc32c125a4d371768fffb19ab22633d4e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/314622 Reviewed-by: Kevin Lubick <kjlubick@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.