e7809c74bc
Fixes a bug with alpha-only image shaders not being modulated by paint alpha (demonstrated by included GM). Compose shaders were the only thing relaying on the old behavior, so make those manually unpremul the input color, with a comment explaining the rationale. This makes runtime shaders (and other new FPs) simpler to reason about: sampling a child shader always produces a premul color, even if that child is null (eg, the input color). Bug: skia:10556 Change-Id: Ie629a9129d04ea80dae0b263c3811ca754202aab Reviewed-on: https://skia-review.googlesource.com/c/skia/+/306947 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Brian Salomon <bsalomon@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.