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: Junjie Hu <junjie.hu@mediatek.com>
1 file changed