skia2/gn
Brian Salomon c0d79e525f Avoid multiplication by alpha in fragment shader when known to be 1.
Implemented for image shaders, image draws, and gradient shaders.

Reimplement GrFragmentProcessor::OverrideInput as GrOverrideInputFragmentProcessor.fp.
It allows specification of whether the replacement input color should be
a literal in the shader code or a uniform. For above use case use with literal white.

Make key in variables in fp files work for 4f colors.

Fix issue in CPP code gen from .fp where when + key vars that pushed multiple values
into the shader key only skipped the first key value when the when condition is not
true.

Bug: skia:7722

Change-Id: Id7c865132d620e8cdea8b00f2a627103eef171ac
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/201985
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2019-04-16 14:03:04 +00:00
..
toolchain Updates to iOS build 2019-04-02 17:24:46 +00:00
__init__.py Make gn directory importable in python 2017-03-20 17:40:30 +00:00
ar.py GN: quiet alink spam on Mac 2016-11-07 14:19:32 +00:00
bench.gni remove SkMixer, since we have explicit lerps/blends in SkShader 2019-04-10 20:59:30 +00:00
BUILD.gn Even more DLL build fixes 2019-04-10 21:02:40 +00:00
BUILDCONFIG.gn Add support for MSVC run-time checks (and control flow guard) 2019-02-04 20:55:24 +00:00
call.py Add gn plumbing for mdbviz tool 2017-09-05 13:57:44 +00:00
checkdir.py Bundle resources and skps directories into iOS app. 2017-11-29 17:06:25 +00:00
codesign_ios.py Allow different identities for iOS code signing 2017-12-07 20:42:00 +00:00
compile_processors.py moved files generated from .fp files into generated/ directories 2019-04-10 18:02:02 +00:00
core.gni remove SkMixer, since we have explicit lerps/blends in SkShader 2019-04-10 20:59:30 +00:00
cp.py GN: get Angle compiling on Windows. 2016-10-17 16:16:16 +00:00
create_sksl_enums.py Create sksl_enums.inc with UNIX line endings (even on Windows) 2018-02-09 15:13:11 +00:00
effects_imagefilters.gni GN: split out skia_*_public from skia_*_sources 2019-03-15 18:29:19 +00:00
effects.gni GN: split out skia_*_public from skia_*_sources 2019-03-15 18:29:19 +00:00
find_headers.py Add 'public' headers support to find_headers.py 2018-05-30 18:00:09 +00:00
find_ios_sysroot.py Add iOS simulator support in GN. 2017-03-13 17:21:43 +00:00
flutter_defines.gni remove guard for bitmap shader api 2019-04-09 16:08:00 +00:00
fuchsia_defines.gni remove legacy hinting-enum guards 2018-11-28 20:15:03 +00:00
gen_plist_ios.py Add create_bundle support for GN 2017-11-28 15:29:07 +00:00
gm.gni Always mark bitmap glyph runs as such, to ensure they are properly regenerated 2019-04-05 16:26:23 +00:00
gn_meta_sln.py Decorate project names with their relative path in the meta SLN 2018-06-01 19:22:08 +00:00
gn_to_bp_utils.py Fix Android host-side Windows build 2019-03-05 18:57:07 +00:00
gn_to_bp.py [Android] Do not build for Windows 2019-03-18 14:29:20 +00:00
gn_to_cmake.py Add mm files to cmake sources 2019-04-05 13:07:32 +00:00
gpu.gni Avoid multiplication by alpha in fragment shader when known to be 1. 2019-04-16 14:03:04 +00:00
highest_version_dir.py Filter Windows SDK and Compiler directories 2017-12-11 20:26:08 +00:00
is_clang.py
opts.gni clean up SkBitmapProcState::platformProcs() 2018-12-03 21:24:31 +00:00
pdf.gni SkPDF: split GraphicStateStack out 2019-04-10 15:42:40 +00:00
push_to_android.py skia_android_serial = "auto" 2017-01-12 16:30:17 +00:00
run_sksllex.py Revert "Revert "SkSL now supports null child processors"" 2019-02-22 17:50:30 +00:00
samples.gni Handle arbitrary and degenerate quadrilaterals in GrQuadPerEdgeAA 2019-03-11 20:04:03 +00:00
shared_sources.gni remove empty skia_for_chromium_defines 2019-01-17 17:37:01 +00:00
skia.gni Make SkShaper's GN setup more DLL friendly 2019-04-10 18:59:35 +00:00
sksl.gni Avoid multiplication by alpha in fragment shader when known to be 1. 2019-04-16 14:03:04 +00:00
tests.gni Towards a simpler SkSL -> GLSL pipeline (and better shader reflection) 2019-04-16 13:49:17 +00:00
utils.gni add utility for caching char2glyph 2019-04-13 00:03:58 +00:00
xps.gni GN: split out skia_*_public from skia_*_sources 2019-03-15 18:29:19 +00:00