Skip to content
Commit 71e3abfa authored by xiaoxin's avatar xiaoxin Committed by xiao xin
Browse files

make sure mSurfaceLock.unlock can be executed in unlockCanvasAndPost



When the program is run to unlockCanvasAndPost method,
if mSurface.unlockCanvasAndPost throws an exception,
the mSurfaceLock.unlock() will not getting the chance to execute.

If an app executes unlockCanvasAndPost in a catch and does not handle the exception,
it will remain locked for a long time after the next execution of mSurfacelock.lock.

make sure the msurfacelock.unlock is executed after unlockCanvasAndPost

bug:245050059 in partnerissuetracker

Change-Id: Ib849c840c61ac261cfaab0daefa7ae2afdbfcba3
Signed-off-by: default avatarxiaoxin <xiaoxin@xiaomi.corp-partner.google.com>
parent 10d1ebad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment