class ITransactionCompletedListener : public IInterface {
public:
DECLARE_META_INTERFACE(TransactionCompletedListener)
virtual void onTransactionCompleted(ListenerStats stats) = 0;
virtual void onReleaseBuffer(ReleaseCallbackId callbackId, sp<Fence> releaseFence,
uint32_t transformHint,
uint32_t currentMaxAcquiredBufferCount) = 0;
};
正常绘制时显示完成后在 onTransactionCompleted()
执行 BufferQueueConsumer::releaseBuffer()。只有在 Layer 销毁时调用 onReleaseBuffer()
。