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

Commit d7932a62 authored by Mathias Agopian's avatar Mathias Agopian Committed by Android Git Automerger
Browse files

am 48be3232: Merge "make sure to update the "current state" when we "fake" the...

am 48be3232: Merge "make sure to update the "current state" when we "fake" the transaction" into jb-mr2-dev

* commit '48be3232':
  make sure to update the "current state" when we "fake" the transaction
parents e4f0dc30 48be3232
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1067,6 +1067,16 @@ Region Layer::latchBuffer(bool& recomputeVisibleRegions)
                if (!front.activeTransparentRegion.isTriviallyEqual(
                        front.requestedTransparentRegion)) {
                    front.activeTransparentRegion = front.requestedTransparentRegion;

                    // We also need to update the current state so that
                    // we don't end-up overwriting the drawing state with
                    // this stale current state during the next transaction
                    //
                    // NOTE: We don't need to hold the transaction lock here
                    // because State::active is only accessed from this thread.
                    current.activeTransparentRegion = front.activeTransparentRegion;

                    // recompute visible region
                    recomputeVisibleRegions = true;
                }