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

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

Merge "SF: Add back debug control of HWC use"

parents 4c79ef19 c358b520
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1904,6 +1904,10 @@ void SurfaceFlinger::calculateWorkingSet() {
        auto display = displayDevice->getCompositionDisplay();

        for (auto& layer : display->getOutputLayersOrderedByZ()) {
            if (mDebugDisableHWC || mDebugRegion) {
                layer->editState().forceClientComposition = true;
            }

            // Update the composition state of the output layer, as needed
            // recomputing it from the state given by the front-end layer.
            layer->updateCompositionState(updatingGeometryThisFrame);