skia2/tools/viewer
Brian Osman c9125aa8f3 Reland "Better first-class shader & color filter support in runtime effects"
This is a reland of adadb95a9f
... adds a temporary workaround for some Android framework code.

Original change's description:
> Better first-class shader & color filter support in runtime effects
>
> This does a few things, because they're all intertwined:
>
> 1) SkRuntimeEffect's API now includes details about children (which Skia
>    stage was declared, not just the name). The factories verify that the
>    declared types in the SkSL match up with the C++ types being passed.
>    Today, we still only support adding children of the same type, so the
>    checks are simple. Once we allow mixing types, we'll be testing the
>    declared type against the actual C++ type supplied for each slot.
> 2) Adds sample variants that supply the input color to the child. This
>    is now the only way to invoke a colorFilter child. Internally, we
>    support passing a color when invoking a child shader, but I'm not
>    exposing that. It's not clearly part of the semantics of the Skia
>    pipeline, and is almost never useful. It also exposes users to
>    several inconsistencies (skbug.com/11942).
> 3) Because of #2, it's possible that we can't compute a reusable program
>    to filter individual colors. In that case, we don't set the constant
>    output for constant input optimization, and filterColor4f falls back
>    to the slower base-class implementation.
>
> Bug: skia:11813 skia:11942
> Change-Id: I06c41e1b35056e486f3163a72acf6b9535d7fed4
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/401917
> Commit-Queue: Brian Osman <brianosman@google.com>
> Reviewed-by: Mike Klein <mtklein@google.com>

Bug: skia:11813 skia:11942
Change-Id: I2c31b147ed86fa8c4dddefb7066bc1d07fe0d285
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/404637
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2021-05-05 22:06:46 +00:00
..
AnimTimer.h
BisectSlide.cpp [svg] Allow clients to pass a custom SkFontMgr 2020-11-11 01:51:44 +00:00
BisectSlide.h
GMSlide.cpp Add a convenience to downcast contexts into GrDirectContext 2020-07-07 18:13:50 +00:00
GMSlide.h Adjust how GM::gpuSetup is handled in the tools 2020-06-26 15:37:30 +00:00
ImageSlide.cpp
ImageSlide.h
ImGuiLayer.cpp Add support for retina displays to sk_app. 2021-01-29 17:33:48 +00:00
ImGuiLayer.h Add support for retina displays to sk_app. 2021-01-29 17:33:48 +00:00
MSKPSlide.cpp Choose background color and whether to draw mskp bounds in viewer 2021-04-30 19:33:49 +00:00
MSKPSlide.h Choose background color and whether to draw mskp bounds in viewer 2021-04-30 19:33:49 +00:00
ParticlesSlide.cpp Move code generators to codegen/ directory. 2021-04-13 15:34:24 +00:00
ParticlesSlide.h
SampleSlide.cpp
SampleSlide.h
SkottieSlide.cpp Simplify common case for recttorect 2021-01-15 18:37:46 +00:00
SkottieSlide.h Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
SKPSlide.cpp Enable ClangTidy check readability-redundant-smartptr-get. 2020-08-16 15:56:48 +00:00
SKPSlide.h
SkRiveSlide.cpp Simplify common case for recttorect 2021-01-15 18:37:46 +00:00
SkRiveSlide.h [skrive] Initial artboard plumbing 2020-06-09 19:58:38 +00:00
SkSLSlide.cpp Reland "Better first-class shader & color filter support in runtime effects" 2021-05-05 22:06:46 +00:00
SkSLSlide.h SkSLSlide: Add shadertoy iResolution & iMouse 2020-12-11 20:19:20 +00:00
Slide.h Reland "FPS and frame control for MSKP slide." 2021-04-30 13:15:33 +00:00
SlideDir.cpp Simplify common case for recttorect 2021-01-15 18:37:46 +00:00
SlideDir.h Enable ClangTidy check llvm-namespace-comment. 2020-08-06 19:07:52 +00:00
StatsLayer.cpp Simplify common case for recttorect 2021-01-15 18:37:46 +00:00
StatsLayer.h
SvgSlide.cpp Reland "[svg] Plumb a ResourceProvider" 2021-01-27 21:12:23 +00:00
SvgSlide.h Reland "[svg] Plumb a ResourceProvider" 2021-01-27 21:12:23 +00:00
TouchGesture.cpp Don't limit pinch zooming in viewer 2020-11-11 17:51:35 +00:00
TouchGesture.h Don't limit pinch zooming in viewer 2020-11-11 17:51:35 +00:00
Viewer.cpp Revert "Revert "Add mskp player, use in viewer slide"" 2021-04-29 19:40:08 +00:00
Viewer.h Rework optimization override flags. 2021-03-30 15:39:15 +00:00