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

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

Merge "Refactor Surfaceflinger Layer::latchBuffer"

parents ff7223ce 223eb91c
Loading
Loading
Loading
Loading
+273 −271
Original line number Diff line number Diff line
@@ -1803,7 +1803,9 @@ Region Layer::latchBuffer(bool& recomputeVisibleRegions)
    }

    Region outDirtyRegion;
    if (mQueuedFrames > 0 || mAutoRefresh) {
    if (mQueuedFrames <= 0 && !mAutoRefresh) {
        return outDirtyRegion;
    }

    // if we've already called updateTexImage() without going through
    // a composition step, we have to skip this layer at this point
@@ -2130,7 +2132,7 @@ Region Layer::latchBuffer(bool& recomputeVisibleRegions)

    // transform the dirty region to window-manager space
    outDirtyRegion = (s.active.transform.transform(dirtyRegion));
    }

    return outDirtyRegion;
}