commit | d95058f1cd4e55d4a956e7ecdf5243ee300d44bf | [log] [tgz] |
---|---|---|
author | Eino-Ville Talvala <etalvala@google.com> | Wed Apr 01 18:29:28 2020 -0700 |
committer | Eino-Ville Talvala <etalvala@google.com> | Thu Apr 30 12:59:06 2020 -0700 |
tree | 3fbf6a7527030179a0f0904d07bc00f3d1208369 | |
parent | b24071b704dbf4fb2241fb3b551f7fba9cec9e6a [diff] |
Camera: Improve metadata access JNI performance - Don't use reverse-JNI to access metadata ptr, pass it as an arg instead - Use @FastNative since the calls are short and bounded in time Performance improvement: - On a 10-second trace of camera app running on sargo, percentage of time used in CameraMetadataNative.get went from 4.36% to 3.77%, a 15% reduction in time. Test: atest CtsCameraTestCases Bug: 150214459 Change-Id: I28d9428beaa7eada6292e24fe6ca1dbd9c2ff153