Merge "SurfaceView: Lock mDeferredDestroySurfaceControl" into rvc-dev am: 28fdf609dc am: 9f6a76be41 am: e2d843987f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11688831 Change-Id: Idb9b29b27186cd967d5c256fac7697480b96235b
This commit is contained in:
@@ -1200,8 +1200,10 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
|
||||
}
|
||||
|
||||
if (mDeferredDestroySurfaceControl != null) {
|
||||
mTmpTransaction.remove(mDeferredDestroySurfaceControl).apply();
|
||||
mDeferredDestroySurfaceControl = null;
|
||||
synchronized (mSurfaceControlLock) {
|
||||
mTmpTransaction.remove(mDeferredDestroySurfaceControl).apply();
|
||||
mDeferredDestroySurfaceControl = null;
|
||||
}
|
||||
}
|
||||
|
||||
runOnUiThread(this::performDrawFinished);
|
||||
|
||||
Reference in New Issue
Block a user