Go to file
Brian Osman e7809c74bc Always send premul paint color to shader FPs
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>
2020-08-03 18:04:22 +00:00
animations
bench Enable ClangTidy check modernize-make-unique. 2020-08-03 17:53:52 +00:00
bin bin/try: automatically set 'git cl issue' when not found 2020-06-25 17:44:01 +00:00
build/fuchsia [fuchsia] Fix fidlc command. 2020-06-10 03:29:24 +00:00
build_overrides Use Dawn's BUILD.gn instead of defining another one for Skia. 2020-04-13 23:26:31 +00:00
client_utils/android Enable ClangTidy check modernize-make-unique. 2020-08-03 17:53:52 +00:00
demos.skia.org Modify CanvasKit to work in a Web Worker and add a demo of it in action. 2020-07-21 22:21:06 +00:00
dm Enable ClangTidy check modernize-make-unique. 2020-08-03 17:53:52 +00:00
docker Fix swiftshader Dockerfile. 2020-07-20 17:17:53 +00:00
docs/examples Enable ClangTidy check modernize-make-unique. 2020-08-03 17:53:52 +00:00
example Clean up GrContext references in the src/gpu 2020-07-16 14:14:08 +00:00
experimental Remove "dummy" to comply with Android's inclusive language guidance 2020-07-31 19:11:23 +00:00
fuzz updated skp fuzzer 2020-07-31 21:27:13 +00:00
gm Always send premul paint color to shader FPs 2020-08-03 18:04:22 +00:00
gn GN: Add support for GN's framework variable in the toolchain 2020-08-03 15:41:37 +00:00
include Enable ClangTidy check modernize-make-unique. 2020-08-03 17:53:52 +00:00
infra Increase ClangTidy code coverage by enabling features. 2020-08-03 15:37:30 +00:00
modules Enable ClangTidy check modernize-make-unique. 2020-08-03 17:53:52 +00:00
platform_tools Remove "dummy" to comply with Android's inclusive language guidance 2020-07-31 19:11:23 +00:00
resources Remove "master" from lua files 2020-07-28 13:35:37 +00:00
samplecode Rename GrTessellateStroke* -> GrStrokeTessellate* and friends 2020-07-31 02:24:05 +00:00
site Remove "dummy" to comply with Android's inclusive language guidance 2020-07-31 19:11:23 +00:00
specs Fix CanvasKit generated documentation to work with emscripten 1.39.16. 2020-05-27 12:23:32 +00:00
src Always send premul paint color to shader FPs 2020-08-03 18:04:22 +00:00
tests Enable ClangTidy check modernize-make-unique. 2020-08-03 17:53:52 +00:00
third_party Roll skcms from 8da4cb002cb4 to b1f9041ffe31 (1 revision) 2020-07-31 13:54:35 +00:00
tools Enable ClangTidy check modernize-make-unique. 2020-08-03 17:53:52 +00:00
.clang-format Disable BinPackParameters in .clang-format 2020-03-27 14:32:40 +00:00
.clang-tidy Enable ClangTidy check modernize-make-unique. 2020-08-03 17:53:52 +00:00
.gitignore [infra] Update recipe dependencies 2020-08-03 11:34:57 +00:00
.gn
AUTHORS GCC: fix unknown attribute warnings for no_sanitize 2020-07-06 13:52:22 +00:00
BUILD.gn updated skp fuzzer 2020-07-31 21:27:13 +00:00
codereview.settings
CONTRIBUTING
CQ_COMMITTERS
DEPS Roll ANGLE from cbd5bee81dc6 to 41442cce3d0f (10 revisions) 2020-08-03 06:36:11 +00:00
go.mod Update Go Deps 2020-07-25 05:33:32 +00:00
go.sum Update Go Deps 2020-07-25 05:33:32 +00:00
LICENSE LICENSE file: clean up 2019-11-22 21:59:03 +00:00
OWNERS
PRESUBMIT.py PRESUBMIT: Don't check formatting of deleted files 2020-04-08 10:36:09 +00:00
public.bzl Don't define SK_GL when no other GPU backends are enabled 2020-07-31 14:14:35 +00:00
README
README.chromium
RELEASE_NOTES.txt remove (unused) DirectTo... methods 2020-07-28 23:47:07 +00:00
whitespace.txt Whitespace change to re-trigger Mac/iOS tests 2020-02-23 20:55:01 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.