skia2/gn
John Stiles 8397365524 Optimize away same-value ternaries.
A ternary of the form `anything ? value : value` can be reduced to a
comma-expression of the form `anything, value`. This seems like a rare
case in real code, but it's easy enough to detect with our existing
toolbox.

The `anything` test-expression will be eliminated from the expression
if it has no side effects, using our existing constant-folding rules
for the comma expression.

Change-Id: I1285b04cd6a08f1bed614aa1aa6f37ea2447de91
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/528439
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2022-04-07 19:37:00 +00:00
..
portable Separate general defaults from Skia defaults 2021-03-22 15:30:56 +00:00
skia Fix setup for iOS simulator on arm64 Macs. 2022-03-30 20:06:39 +00:00
toolchain Touch up CanvasKit build 2022-02-23 18:58:40 +00:00
__init__.py
bench.gni Move tessellation-specific functions out of GrPathUtils 2021-11-20 02:47:40 +00:00
BUILDCONFIG.gn Fix setup for iOS simulator on arm64 Macs. 2022-03-30 20:06:39 +00:00
call.py
checkdir.py
checkpath.py
codesign_ios.py [python3] Reland recipes -> python3 changes 2021-12-01 13:04:03 +00:00
compile_ib_files.py [python3] Reland recipes -> python3 changes 2021-12-01 13:04:03 +00:00
compile_sksl_tests.py Revert "[skslc] Generate .hlsl test output files" 2022-01-25 04:57:15 +00:00
copy_git_directory.py [python3] Reland recipes -> python3 changes 2021-12-01 13:04:03 +00:00
core.gni [graphite] Move the UniformManager into the SkPipelineDataGatherer 2022-04-06 19:31:56 +00:00
cp.py Work around python 2 shutil.copy2 date bug 2020-09-28 20:12:13 +00:00
dehydrate_sksl.py Separate SkSL module dehydration from SkSL test compilation. 2022-04-06 21:55:39 +00:00
effects_imagefilters.gni Implement separate crop filter 2021-09-24 20:18:36 +00:00
effects.gni Add missing SkTrimPathEffect to skia_effects_public 2022-02-28 22:42:44 +00:00
find_headers.py Give a human-intelligible message if gn generates a warning 2022-02-23 18:40:03 +00:00
find_msvc.py
find_xcode_sysroot.py [python3] Reland recipes -> python3 changes 2021-12-01 13:04:03 +00:00
flutter_defines.gni drawVertices and drawPath apply blend between paint and primitive color. 2021-11-22 19:09:33 +00:00
fuchsia_defines.gni Enable new clip stack for Fuchsia 2020-10-12 20:41:03 +00:00
gen_plist_ios.py Add product bundle name to iOS Xcode projects 2020-11-16 16:00:56 +00:00
gm.gni Support font palette overrides through SkFontArguments 2022-02-17 13:19:53 +00:00
gn_meta_sln.py
gn_to_bp_utils.py Build the NDK compliant shared library to be used by JNI in SkQP. 2022-01-10 17:11:48 +00:00
gn_to_bp.py Tweak linux_glibc properties for musl builds in external/skia 2022-03-18 19:01:05 +00:00
gn_to_cmake.py Fix CMakeLists to find Emscripten headers 2021-04-16 16:45:22 +00:00
gpu.gni [includes] Remove more includes of SkColorSpace 2022-04-06 21:58:24 +00:00
graphite.gni [graphite] Initial ClipStack paired down from v1::ClipStack 2022-03-31 16:45:58 +00:00
highest_version_dir.py
ios.gni Fix setup for iOS simulator on arm64 Macs. 2022-03-30 20:06:39 +00:00
is_clang.py Fix is_clang python3 encoding errors 2020-06-26 18:41:00 +00:00
make_gm_gni.py
opts.gni
pdf.gni
push_to_android.py
rm.py
run_sksllex.py Reland "Fetch clang-format automatically when compiling .fp files." 2020-06-12 13:21:41 +00:00
samples.gni Add SampleSBIX to study sbix glyph translation. 2022-03-25 14:43:23 +00:00
shared_sources.gni Update sprint to graphite name 2021-09-21 16:44:10 +00:00
skia.gni Add new sksl-precompile binary to tools. 2022-04-06 19:45:07 +00:00
skqp_gn_args.py Remove old experiments 2022-03-08 19:07:00 +00:00
sksl_tests.gni Optimize away same-value ternaries. 2022-04-07 19:37:00 +00:00
sksl.gni [sksl][wgsl] Introduce SkSLWGSLCodeGenerator 2022-04-05 21:54:08 +00:00
tests.gni [graphite] Rename SkUniformBlock to SkPipelineData 2022-03-02 17:01:07 +00:00
utils.gni add a system for building SkCanvas wrappers for testing 2022-03-24 18:11:53 +00:00
xps.gni