summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderThread.cpp
diff options
context:
space:
mode:
authorSeigo Nonaka <nona@google.com>2019-02-04 21:07:41 -0800
committerSeigo Nonaka <nona@google.com>2019-02-04 21:07:41 -0800
commit1090f49c5aada61b7ed6eb7743e34cd4ea937b46 (patch)
treeb1d1a92b1546a6a7f3999d583f0d6e9980a4d300 /libs/hwui/renderthread/RenderThread.cpp
parent49181399d571fa6b8f396ed29b2183ded4a1d565 (diff)
Implement batch horizontal advances callback
The SkFont's overhead is not negligible if we performs glyph width computation one-by-one. HarfBuzz now supports batch width request, so let's use it for aoviding SkFont's overhead. Here is the raw performance scores: android.text.StaticLayoutPerfTest: create RandomText Balanced Hyphenation : 16,311 -> 15,253: (-1058, -6.5%) RandomText Balanced NoHyphenation : 6,679 -> 6,164: ( -515, -7.7%) RandomText Greedy Hyphenation : 6,614 -> 6,083: ( -531, -8.0%) RandomText Greedy NoHyphenation : 6,613 -> 6,090: ( -523, -7.9%) Bug: 123907498 Test: minikin_tests Test: hwui_unit_tests Test: atest CtsTextTestCases Test: atest CtsGraphicsTestCases Test: atest CtsWidgetTestCases Test: TreeHugger Change-Id: I5a33e24aa0b5d865f02518c5e80177d5a7706593
Diffstat (limited to 'libs/hwui/renderthread/RenderThread.cpp')
0 files changed, 0 insertions, 0 deletions