Skip to content
Commit bb39c858 authored by Sheng-Hao Tsao's avatar Sheng-Hao Tsao Committed by Eino-Ville Talvala
Browse files

Fix a bug that SurfaceView loses transformation

SurfaceView created for on-screen preview sometimes loses
transformation information in the Camera2 API with HALv1
environment, and therefore produced wrongly transformed frames.

It's because in RequestThreadManager.configureOutputs(), the
transformation set by LegacyCameraDevice.setSurfaceOrientation()
is cleared at mGLThreadManager.setConfigurationAndWait().

The bug is fixed by setting transformation information again
after mGLThreadManager.setConfigurationAndWait().

BUG=63313861
TEST=Check on minnie with GCA and CameraIQTesting app. Preview always
displays correct transformation in Camera2<=>HALv1 environment.

Change-Id: Ic395047a120a21b3968dedb4314bdbe519c932e6
parent f56c63b2
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