summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorLeon Scroggins III <scroggo@google.com>2019-03-12 10:15:46 -0400
committerLeon Scroggins III <scroggo@google.com>2019-03-14 10:33:57 -0400
commit03b3e236a058b878ec467918610df8f94e83301c (patch)
tree4af8d0644a456d4440d707603966a5664c85f327 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent309eb41ae181c19150a40cd695132189f7928fbb (diff)
Restore Paint#nSetColor(@ColorInt)
Bug: 127580253 Test: CtsGraphicsTestCases Perf: systrace Restored with a partial revert of "Add Paint#get(ShadowLayer)ColorLong" (commit 6ee411010ea270351d495bf357fc294304286a70). The original CL combined the @ColorInt and @ColorLong version for simplicity, but required doing extra work for the @ColorInt version. Separating them back out speeds it up at the cost of more code. Using systrace I see the following stats: Duration: (w/o this change) (w/ this change) avg: 0.020 ms 0.001 ms max: 9.141 ms 0.072 ms min: 0.005 ms 0.001 ms std: 0.074 ms 0.001 ms This change shows a significant speed improvement. It does not do the same for setShadowLayer, which is likely used less frequently. Change-Id: I9021864fcad7d0149b93674f09339f805c272994
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions