Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93d5a5e4 authored by Valerie Hau's avatar Valerie Hau
Browse files

Actually finalize frame event history before sending callbacks

Bug: 141939081
Test: build, boot, libgui_test
Change-Id: I33f14405ae7bebe28daf87c7fa37e9f27d5b04cd
parent edd6bc95
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -329,6 +329,7 @@ bool BufferLayer::onPostComposition(sp<const DisplayDevice> displayDevice,
        Mutex::Autolock lock(mFrameEventHistoryMutex);
        mFrameEventHistory.addPostComposition(mCurrentFrameNumber, glDoneFence, presentFence,
                                              compositorTiming);
        finalizeFrameEventHistory(glDoneFence, compositorTiming);
    }

    // Update mFrameTracker.