f3ebd312f2
Convenient for just extracting alpha (and more efficient than getColor()) and works for super-normal formats w/o loss of precision. Somewhat inspired by examining multiple chrome call-sites for getColor(), where chrome only really cared about the alpha. This new method runs about twice as fast as getColor() for the simple cases (i.e. no colorspace xforms), and even faster in the complex cases (since retrieving alpha doesn't care about colorspaces). Bug: skia: Change-Id: I7cd5a2c7f78de781aaa69dd1aa0dba3c532fcb73 Reviewed-on: https://skia-review.googlesource.com/155606 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Mike Klein <mtklein@google.com> |
||
---|---|---|
animations | ||
bench | ||
bin | ||
dm | ||
docker | ||
docs | ||
example | ||
experimental | ||
fuzz | ||
gm | ||
gn | ||
include | ||
infra | ||
modules | ||
platform_tools | ||
resources | ||
samplecode | ||
site | ||
src | ||
tests | ||
third_party | ||
tools | ||
.clang-format | ||
.gitignore | ||
.gn | ||
AUTHORS | ||
BUILD.gn | ||
codereview.settings | ||
CONTRIBUTING | ||
CQ_COMMITTERS | ||
DEPS | ||
Doxyfile | ||
LICENSE | ||
OWNERS | ||
PRESUBMIT.py | ||
public.bzl | ||
README | ||
README.chromium | ||
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.