SurfaceComposerClient::Transaction&
SurfaceComposerClient::Transaction::addTransactionCompletedCallback(
TransactionCompletedCallbackTakesContext callback, void* callbackContext) {
return addTransactionCallback(callback, callbackContext, CallbackId::Type::ON_COMPLETE);
}
TransactionCompletedCallbackTakesContext 是函数类型。
using TransactionCompletedCallbackTakesContext =
std::function<void(void* /*context*/, nsecs_t /*latchTime*/,
const sp<Fence>& /*presentFence*/,
const std::vector<SurfaceControlStats>& /*stats*/)>;
调用 Transaction::addTransactionCallback(),参数 CallbackId::Type::ON_COMPLETE
。