diff options
| author | 2024-08-23 16:11:10 -0500 | |
|---|---|---|
| committer | 2024-08-25 11:09:40 -0500 | |
| commit | 5312ec10e10f9cb0c2b91ac85b402de4e92fe4e6 (patch) | |
| tree | 396c9c324b3372c41fcb41b0ca37cd96fdb57cd2 /libs/gui/ConsumerBase.cpp | |
| parent | 4efab5d7614f1b809ea89c6226d0a0555f79b255 (diff) | |
Replace BBQ callback thunks with lambdas
The lambdas allows for better StrongPointer/RefBase safety by replacing explicit incStrong/decStrong calls with RAII. Captured StrongPointers are created using sp<T>::fromExisting which helps detect RefBase errors such as creating a StrongPointer from an already deleted RefBase object.
Bug: 361588984
Flag: EXEMPT refactor
Test: presubmits
Change-Id: I1a0c0df882ec2a3f91f857c446418f3fb51689c1
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions