a16bdc1f66
Change-Id: Ief2a60fccdffcb8a0cf785a5adcca5d3e1172b49 Bug: skia:10549 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/344298 Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
16 lines
418 B
GLSL
16 lines
418 B
GLSL
uniform half4 color;
|
|
|
|
half4 flip(half4 c) {
|
|
// Prevent the function from being inlined by making it
|
|
// sufficiently large, and by calling it more than once.
|
|
int x = 42;
|
|
++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x;
|
|
++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x;
|
|
++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x;
|
|
return c.abgr;
|
|
}
|
|
|
|
half4 main() {
|
|
return flip(flip(flip(color)));
|
|
}
|