mListenerCallbacks
是用于发送给 SurfaceFlinger。在 TransactionCompletedListener::onTransactionCompleted() 中根据 callbackId
从 TransactionCompletedListener::mCallbacks 查找 callbackFuntion
。
std::unordered_map<sp<ITransactionCompletedListener>, CallbackInfo, TCLHash>
mListenerCallbacks;
surfaceControls
。callbackId
,写 callbackIds
。graph TD
mListenerCallbacks --> map[ITransactionCompletedListener -> CallbackInfo]
map -.- CallbackInfo
CallbackInfo --> callbackIds
CallbackInfo --> surfaceControls