diff options
author | John Reck <jreck@google.com> | 2015-07-10 10:55:49 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2015-07-10 10:58:46 -0700 |
commit | c6024cdd3553760aa99bfbabecc6a3d8443f5c47 (patch) | |
tree | fafc91078ade70ee23f6d29978fe6b4a58dc5b14 /docs/html/sdk/api_diff/19/changes | |
parent | 476f7158222e49ec24a5fc08f0bbb33fb8ca10bf (diff) |
JNI optimization tweaks to Paint high-frequency methods
Bug: 22378829
Use fast-jni for getFontMetrics, drops from 35us -> 30us
Note the "heavy" part of the method, getMetricsInternal, is
already called by other fast-jni methods.
Use critical array access for getRunAdvance_* methods. This
will avoid the copy and the access is appropriately scoped
and fast enough to not significantly block the moving GC.
Improves from 88us -> 79us on short text
Change-Id: I7c1481c23f6dba3420fbcf48220f6335cf9f6d10
Diffstat (limited to 'docs/html/sdk/api_diff/19/changes')
0 files changed, 0 insertions, 0 deletions