diff options
author | Seigo Nonaka <nona@google.com> | 2018-10-19 19:10:02 -0700 |
---|---|---|
committer | Seigo Nonaka <nona@google.com> | 2018-10-26 10:31:33 -0700 |
commit | f307adc83eaa33a9fdf5e58f4134c4ff3a500deb (patch) | |
tree | 26e6b85c0b46462f742c8236b8015ad3fd15191c /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | ffe3226069984e6c8e3f7bf08941d74c2afd3fdc (diff) |
Do not pass context to minikin in case of Canvas.drawText
Canvas.drawText don't use context info, just draw the given slice of
text.
By this change the performance for the long text gets back.
android.text.CanvasDrawTextTest
drawText_LongText_SmallWindow : 94,526 us -> 11,268 us
Bug: 111638688
Test: atest CanvasDrawTextTest
Change-Id: I69f8cbf4ff361d213f5d041148dbcc41ebd16c84
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions