Update MatrixEffect to avoid extraneous out variable.
Using return statements generates better code, e.g.:
Before:
vec4 _11_2_MatrixEffect_Stage1;
{
vec4 _12_4_output;
vec4 _13_5_0_TextureEffect_Stage1;
/* sample from texture */
_12_4_output = _13_5_0_TextureEffect_Stage1;
_11_2_MatrixEffect_Stage1 = _12_4_output;
}
After:
vec4 _13_2_MatrixEffect_Stage1;
{
vec4 _14_5_0_TextureEffect_Stage1;
/* sample from texture */
_13_2_MatrixEffect_Stage1 = _14_5_0_TextureEffect_Stage1;
}
Change-Id: Ifb403b5aa4d0a0a38cef7a75ae2468fc9e6c0bf7
Bug: skia:10549
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/321121
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2 files changed