Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
skia
/
f2cdf59d586ae9f8c5e0233c75cb903a90f1df3b
/
.
/
tests
/
sksl
/
inliner
/
IfWithReturnsCanBeInlined.sksl
blob: fc534282182ccaa29d7537ed8eeaa7918cd78af7 [
file
] [
log
] [
blame
]
uniform half4 color
;
half4 branchy
(
half4 c
)
{
if
(
c
.
z
==
c
.
w
)
return
c
.
yyyy
;
else
return
c
.
zzzz
;
}
void
main
()
{
sk_FragColor
=
branchy
(
color
);
}