Merge "HWUI: Finish frame callbacks before framecomplete callbacks"

This commit is contained in:
Vishnu Nair
2020-10-16 23:04:13 +00:00
committed by Android (Google) Code Review

View File

@@ -465,6 +465,7 @@ void CanvasContext::draw() {
mCurrentFrameInfo->addFlag(FrameInfoFlags::SkippedFrame);
// Notify the callbacks, even if there's nothing to draw so they aren't waiting
// indefinitely
waitOnFences();
for (auto& func : mFrameCompleteCallbacks) {
std::invoke(func, mFrameNumber);
}