647a9bd7c2
(Removed one test, SkSLFPSwitchWithMultipleReturnsInside, because it was redundant with existing tests.) Change-Id: I1bfc069babdb5eb0cc515f195c3a2e307bb5871a Bug: skia:10694 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/319029 Commit-Queue: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
11 lines
195 B
GLSL
11 lines
195 B
GLSL
in fragmentProcessor child;
|
|
bool opaque = child.preservesOpaqueInput;
|
|
|
|
void main() {
|
|
if (opaque) {
|
|
sk_OutColor = sample(child);
|
|
} else {
|
|
sk_OutColor = half4(0.5);
|
|
}
|
|
}
|