e6b3c034eac67f189cfc5771ca4f6a218f489a75
issue: https://github.com/flutter/flutter/issues/148496 The linked issue showed us as ALU bound with the linear gradient, this should relieve some of that pressure. Tests: There is already existing golden tests for this, this just changed the performance, no new functionality. ## summary of math improvements: - (num_colors - 1) * division -> multiplication - (num_colors - 1) * subtractions removed - removes 1 `dot()` - 1 division -> multiplication - 1 subtraction removed [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
Description
Languages
Dart
75.4%
C++
16.4%
Objective-C++
2.7%
Java
2.7%
Objective-C
0.6%
Other
1.8%