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

Commit c358b520 authored by Lloyd Pique's avatar Lloyd Pique
Browse files

SF: Add back debug control of HWC use

My changes to refactor Layer::setPerFrameData ended up dropping the
ability to force client composition if either mDebugDisableHWC or
mDebugRegion were set.

This simply adds back a check on those flags to force client
composition.

Test: Set "Disable HW overlays" developer option
Bug: 38853920

Change-Id: Ia31cca8232a95b081b1565921b18acd69fb02757
parent f7a21a9f
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);