定义在 BLASTBufferQueue.cpp 中。
static void transactionCommittedCallbackThunk(void* context, nsecs_t latchTime,
const sp<Fence>& presentFence,
const std::vector<SurfaceControlStats>& stats) {
if (context == nullptr) {
return;
}
sp<BLASTBufferQueue> bq = static_cast<BLASTBufferQueue*>(context);
bq->transactionCommittedCallback(latchTime, presentFence, stats);
}