Skip to content
Commit 5d518dcd authored by Seigo Nonaka's avatar Seigo Nonaka
Browse files

Remove nSetLocales

nSetLocales needed to be done at the same time of addStyleRun.
So it is natural to be the arguments of addStyleRun.

Since locale change detection take longer time in native, check it
in Java and pass null if not changed.

Here is an example of StaticLayoutPerfTestResult.
Before (median):
 createRandom: 3,422,247
 createRandom(breakBalanced): 3,448,865
 create: 183,642

After:
 createRandom: 3,493,079
 createRandom(breakBalanced): 3,495,381
 create: 193,363

Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit CtsTextTestCases:android.text.cts.DynamicLayoutTest
Test: bit CtsTextTestCases:android.text.cts.StaticLayoutTest
Test: minikin_tests
Bug: 65175766
Bug: 65024629
Change-Id: I4586cef626f631d4736b0db59ba9f3f6abd3d4ff
parent a0a23c7f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment