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

Commit e245cdcc authored by Jesse Hall's avatar Jesse Hall Committed by Android Git Automerger
Browse files

am 5bf786d8: surfaceflinger: recompute visibility after sideband stream change

* commit '5bf786d8':
  surfaceflinger: recompute visibility after sideband stream change
parents 28da3288 5bf786d8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1042,6 +1042,10 @@ Region Layer::latchBuffer(bool& recomputeVisibleRegions)
    if (android_atomic_acquire_cas(true, false, &mSidebandStreamChanged) == 0) {
        // mSidebandStreamChanged was true
        mSidebandStream = mSurfaceFlingerConsumer->getSidebandStream();
        recomputeVisibleRegions = true;

        const State& s(getDrawingState());
        return s.transform.transform(Region(Rect(s.active.w, s.active.h)));
    }

    Region outDirtyRegion;