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

Commit d3208d8f authored by Vishnu Nair's avatar Vishnu Nair Committed by Android (Google) Code Review
Browse files

Merge "[sf] Only trace rebuildLayerStacks if there are changes" into main

parents 9d9af9f8 d9a640b3
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -469,15 +469,14 @@ void Output::uncacheBuffers(std::vector<uint64_t> const& bufferIdsToUncache) {

void Output::rebuildLayerStacks(const compositionengine::CompositionRefreshArgs& refreshArgs,
                                LayerFESet& layerFESet) {
    ATRACE_CALL();
    ALOGV(__FUNCTION__);

    auto& outputState = editState();

    // Do nothing if this output is not enabled or there is no need to perform this update
    if (!outputState.isEnabled || CC_LIKELY(!refreshArgs.updatingOutputGeometryThisFrame)) {
        return;
    }
    ATRACE_CALL();
    ALOGV(__FUNCTION__);

    // Process the layers to determine visibility and coverage
    compositionengine::Output::CoverageState coverage{layerFESet};