commit | 161f47e0a4bd18225009a78faf21ca129b206f28 | [log] [tgz] |
---|---|---|
author | Atneya Nair <atneya@google.com> | Thu Nov 18 19:16:37 2021 -0500 |
committer | Atneya Nair <atneya@google.com> | Thu Nov 18 19:16:37 2021 -0500 |
tree | 3dae13c11918c371a7c1903d9e89cc9225eedecd | |
parent | 4ba4f224a6e6b0aa05393b65d65664e0321c38af [diff] |
Inherit RefBase virtually in AudioDeviceCallback In cases where we have diamond inheritance from RefBase, such as implementing two different callback interfaces, we need to share the reference count. Two seperate reference counts lead to difficult to detect lifetime issues. Bug: 207034551 Test: Compiles Change-Id: I4c6e0bca2fdf65eaed5029b3ec8a7b6a39b3f15f