summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorMatt Casey <mrcasey@google.com>2019-06-26 12:02:05 -0400
committerMatt Casey <mrcasey@google.com>2019-06-26 12:16:14 -0400
commit59b44017bffea3dc8b799572da0d1a7245a3f2f1 (patch)
tree597cc64fb19f054673262dbcca6c332c45557e07 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentad6e5d22f6669409b7b0cc8ec94d3e73e580f6dc (diff)
Reduce floating point error in PerimeterPathGuide.
Instead of dividing before adding up the lengths, add up the lengths and then divide. Before this change, the end point of the last region was not 1.0, after this change it is. Bug: 136084565 Test: Verified values via logging. No visible change in behavior. Change-Id: Iddc87bed3c8b427af41f247589a9f1a99ad03555
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions