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

Commit 755678b3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Send metrics notification just before frame advances" into sc-dev

parents 62acb388 adf5024a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -576,6 +576,7 @@ void CanvasContext::draw() {

    if (requireSwap) {
        if (mExpectSurfaceStats) {
            reportMetricsWithPresentTime();
            std::lock_guard lock(mLast4FrameInfosMutex);
            std::pair<FrameInfo*, int64_t>& next = mLast4FrameInfos.next();
            next.first = mCurrentFrameInfo;
@@ -656,8 +657,6 @@ void CanvasContext::onSurfaceStatsAvailable(void* context, ASurfaceControl* cont
        }
    }

    instance->reportMetricsWithPresentTime();

    if (frameInfo != nullptr) {
        if (gpuCompleteTime == -1) {
            gpuCompleteTime = frameInfo->get(FrameInfoIndex::SwapBuffersCompleted);