1uniform half4 colorGreen, colorRed; 2 3half4 main(float2 coords) { 4 const float4 a = float4(0); 5 const float4 b = float4(1); 6 // This is a constant-expression in GLSL, but not in SkSL (yet). 7 // We can't declare this const, and we can't eliminate it. skbug.com/10835 8 /*const*/ float4 c = abs(b); 9 if (a == b || b != c) { 10 return colorRed; 11 } else { 12 return colorGreen; 13 } 14} 15