Commit f1af475e authored by Junjie Hu's avatar Junjie Hu Committed by Stuart Scott
Browse files

Fix CTS testSetPreviewTextureTextureCallback seldom NullPointerException



android.hardware package testSetPreviewTextureTextureCallback testcase:
Issue:java.lang.NullPointerException is took place at onDrawFrame(), cause testcase fail
Rootcause: mSurfaceTexture is used in 2 thread, terminateMessageLooper() which is run in
main thread and onDrawFrame() which is run in GLThread, so need to make it thread-safe.

Change-Id: I8aedb7c71d7eb5ebf07e91e4b9232c43cca65850
Signed-off-by: default avatarJunjie Hu <junjie.hu@mediatek.com>
parent 353fb28b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment