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

Commit adbd486a authored by Rob Carr's avatar Rob Carr Committed by Android (Google) Code Review
Browse files

Merge "onPostComposition doesnt need to run on layers without queued frames" into sc-dev

parents c67c384e c747ad01
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2253,14 +2253,14 @@ void SurfaceFlinger::postComposition() {
        compositorTiming = getBE().mCompositorTiming;
    }

    mDrawingState.traverse([&](Layer* layer) {
    for (const auto& layer: mLayersWithQueuedFrames) {
        const bool frameLatched =
                layer->onPostComposition(display, glCompositionDoneFenceTime,
                                         mPreviousPresentFences[0].fenceTime, compositorTiming);
        if (frameLatched) {
            recordBufferingStats(layer->getName(), layer->getOccupancyHistory(false));
        }
    });
    }

    std::vector<std::pair<std::shared_ptr<compositionengine::Display>, sp<HdrLayerInfoReporter>>>
            hdrInfoListeners;