diff options
author | Leon Scroggins III <scroggo@google.com> | 2019-03-12 11:13:27 -0400 |
---|---|---|
committer | Leon Scroggins III <scroggo@google.com> | 2019-03-14 10:59:37 -0400 |
commit | 10965f3922380581b7bf11dbc7b1bf4ef4ffdd2e (patch) | |
tree | 772cf4be8c9fad9c2d274cd38a40b1d8601d7d6a /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 03b3e236a058b878ec467918610df8f94e83301c (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