diff options
author | Eino-Ville Talvala <etalvala@google.com> | 2020-02-10 13:52:14 -0800 |
---|---|---|
committer | Eino-Ville Talvala <etalvala@google.com> | 2020-02-11 10:35:18 -0800 |
commit | fdfec366921b4d3433f3e581c59bcbb6683eb13f (patch) | |
tree | d89f737f6d96e17eb2953d270d354265d836e3a6 /libs/hwui/renderthread/RenderThread.cpp | |
parent | 825f041a0c13313e1c9f1c38aa7b339672aadcaf (diff) |
Camera NDK: New lifecycle for ACameraMetadata_fromCameraMetadata
Instead of requiring the user to call NewGlobalRef/DeleteGlobalRef
for keeping the java object alive when creating an NDK view into it,
reference count the real native data instead, so that there's no need
to keep track of the Java object lifecycle.
- Switch CameraMetadataNative use std::shared_ptr
Test: New CTS tests pass, fail without this CL
Bug: 148972471
Change-Id: I9a00fc1daa1beac35a15484960048facb90499a6
Diffstat (limited to 'libs/hwui/renderthread/RenderThread.cpp')
0 files changed, 0 insertions, 0 deletions