Update unit test to exercise Metal precedence issue.
This unit test would fail if the Metal code were not properly
parenthesized. It now correctly emits:
color.x = color.x + (color.w <= 1.0 ? color.z : 0.0);
Before http://review.skia.org/644317, it would emit
color.x = color.x + color.w <= 1.0 ? color.z : 0.0;
Which would take the other branch of the ternary.
Bug: skia:14123
Change-Id: Ib4d5b44e9184990fd9f184e50a5aa2eb63d6e50c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/644436
Reviewed-by: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
6 files changed