aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeigo Nonaka <nona@google.com>2018-01-27 16:45:27 -0800
committerSeigo Nonaka <nona@google.com>2018-02-07 06:01:55 +0000
commit6294f2f2c7ef5a8d7f20838277e3524c6fc9a5d5 (patch)
tree40ede2981cc65cf46a9afd95ca7f0a43ab3dc196
parentf95a5259b0a585758d51dd5624e9bd3c391a19aa (diff)
downloadharfbuzz_ng-6294f2f2c7ef5a8d7f20838277e3524c6fc9a5d5.tar.gz
Enable multi thread option of HarfBuzz
Here is a performance difference before and after this patch. StaticLayout.create for random 500 character alphabet text with hyphenation ON, line break strategy balanced. median: 19,063,478 -> 19,257,779: (+1.0%) Before: N:100, .95CI:(19,030,929, 19,082,960), min:18,760,218, max:19,426,262 After: N:100, .95CI:(19,250,591, 19,300,926), min:18,943,870, max:19,665,030 Bug: 69175154 Bug: 37567215 Test: bit CtsTextTestCases:* Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Change-Id: I54adf7e0a31be87867e470ecc981e85fd6b122dc
-rw-r--r--Android.bp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index ff6b4301d..fd5ab7a61 100644
--- a/Android.bp
+++ b/Android.bp
@@ -105,7 +105,7 @@ cc_library_shared {
export_include_dirs: ["src"],
cflags: [
- "-DHB_NO_MT",
+ "-DHAVE_INTEL_ATOMIC_PRIMITIVES",
"-DHAVE_OT",
"-DHAVE_ICU",
"-DHAVE_ICU_BUILTIN",