blob: 09411e4ce55243fcaea144447a910c68e8f8aaaa [file] [log] [blame]
uniform half4 colorGreen, colorRed;
noinline void unbraced() {
if (colorGreen.g == 1)
sk_FragColor = colorGreen;
else if (colorRed.r == 1)
if (colorRed.g == 0)
sk_FragColor = colorGreen;
else
sk_FragColor = colorRed;
else
sk_FragColor = colorRed;
}
noinline void braced() {
if (colorGreen.g == 1) {
sk_FragColor = colorGreen;
} else if (colorRed.r == 1) {
if (colorRed.g == 0) {
sk_FragColor = colorGreen;
} else {
sk_FragColor = colorRed;
}
} else {
sk_FragColor = colorRed;
}
}
void main() {
unbraced();
braced();
}