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

Commit 5e211a23 authored by Rob Carr's avatar Rob Carr Committed by Automerger Merge Worker
Browse files

Merge "SurfaceView: Lock mDeferredDestroySurfaceControl" into rvc-dev am:...

Merge "SurfaceView: Lock mDeferredDestroySurfaceControl" into rvc-dev am: 28fdf609 am: 9f6a76be am: e2d84398

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11688831

Change-Id: Idb9b29b27186cd967d5c256fac7697480b96235b
parents 0b63a4fc e2d84398
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1200,9 +1200,11 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
        }

        if (mDeferredDestroySurfaceControl != null) {
            synchronized (mSurfaceControlLock) {
                mTmpTransaction.remove(mDeferredDestroySurfaceControl).apply();
                mDeferredDestroySurfaceControl = null;
            }
        }

        runOnUiThread(this::performDrawFinished);
    }