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
1 file changed