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

Commit 38683625 authored by Chavi Weingarten's avatar Chavi Weingarten Committed by Android (Google) Code Review
Browse files

Merge "Remove lock when calling Surface.destroy" into tm-dev

parents d7249168 9e3cd053
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -719,13 +719,8 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall

    private void releaseSurfaces(boolean releaseSurfacePackage) {
        mSurfaceAlpha = 1f;
	
        mSurfaceLock.lock();
        try {
        mSurface.destroy();
        } finally {
            mSurfaceLock.unlock();
        }

        synchronized (mSurfaceControlLock) {
            if (mBlastBufferQueue != null) {
                mBlastBufferQueue.destroy();