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

Commit d9a640b3 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

[sf] Only trace rebuildLayerStacks if there are changes

Clean up perfetto traces  to only show
tags when they are interesting.

Bug: 292225846
Test: open trace in perfetto
Change-Id: I1e3744abb08c7a3b34244db8ce8be5299cf86b19
parent 52d56fd1
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};