summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorSantos Cordon <santoscordon@google.com>2020-05-13 18:25:21 +0100
committerSantos Cordon <santoscordon@google.com>2020-05-15 17:52:52 +0100
commited5a8fe9b70afe6ef1f4ccf686ccd1ef09612dc0 (patch)
treecb1409b59c1f7b18b848e52261f457ad6d9e797d /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parenta601967457fa25a46b8d35a525cb0c4e57d53dd7 (diff)
Adjust float-to-int brightness conversion to be purely in float.
By converting to int and back as part of the final steps in sending the brightness to the HAL, we undo the whole benefit of having floating point brightness. This change alters the conversion to an int-range without using the int-primitives. This helps maintain the existing precision. Bug: 155875691 Test: Manually verify with logs that the float value isn't altered before going to the HAL (it previously was). Test: atest CtsDisplayTestCases Test: atest DisplayManagerServiceTests Change-Id: Ibf2f8d00c575d440c3fe437b32c0613bcd471c2a Change-Id: Ie9569efb7b951c15ffcf2306ff9f864f858df8b1
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions