skia /
skia /
b2468c588917c759f019ce78ae9f056b4319f937 Add support to SkSLTest for invoking child shaders.
We now have two built-in effects, `shader shaderGreen` and
`shader shaderRed`. These are similar to `half4 colorGreen` and
`half4 colorRed`, except they are implemented as child-effect
shaders which need to be evaluated.
This CL also adds one unit test which demonstrates their usage
in a basic way. This is mostly very straightforward, but the
raw RasterPipeline testing (without SkRuntimeEffect) needed
a little extra logic to detect and implement these effects.
Change-Id: I19116be26e2b92ddb376a6aab5dafb9f5ebd3b60
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/885059
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
7 files changed