Merge "make sure mSurfaceLock.unlock can be executed in unlockCanvasAndPost"

This commit is contained in:
Treehugger Robot
2022-09-09 17:10:06 +00:00
committed by Gerrit Code Review

View File

@@ -1626,8 +1626,11 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
*/
@Override
public void unlockCanvasAndPost(Canvas canvas) {
mSurface.unlockCanvasAndPost(canvas);
mSurfaceLock.unlock();
try {
mSurface.unlockCanvasAndPost(canvas);
} finally {
mSurfaceLock.unlock();
}
}
@Override