summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorLeon Scroggins III <scroggo@google.com>2019-03-12 11:13:27 -0400
committerLeon Scroggins III <scroggo@google.com>2019-03-14 10:59:37 -0400
commit10965f3922380581b7bf11dbc7b1bf4ef4ffdd2e (patch)
tree772cf4be8c9fad9c2d274cd38a40b1d8601d7d6a /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent03b3e236a058b878ec467918610df8f94e83301c (diff)
Convert ColorLong in native code in Paint
Bug: 127580253 Test: CtsGraphicsTestCases Perf: systrace Follow on to I0b42c17159b290868a6bed7b90da096995504c4d, which did this for other classes. I expect this to be more efficient due to passing fewer JNI parameters, which appears to be the case based on the systrace data for setColor(@ColorLong): Duration: (w/o this change) (w/ this change) avg: 0.010 ms 0.005 ms max: 9.130 ms 0.239 ms min: 0.002 ms 0.002 ms std: 0.052 ms 0.004 ms The average is twice as fast, the max is significantly shorter, and the standard deviation is much smaller as well. Change-Id: I241824bf2a934746df93da1063b14f3080486cb5
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions