Camera: Only override rotate&crop for Camera2 clients
Legacy camera clients can and will use 'setDisplayOrientation' to explicitly set a preview stream transformation depending on the sensor orientation and the device rotation. To maintain backward compatibility and honor the client configuration, avoid overriding rotate&crop in case we have a legacy client connection. Additionally do not override rotate&crop for stream configurations that include SurfaceView(HW_COMPOSER) outputs. Test: Manual using camera application Bug: 201005727 Change-Id: I3e32049bdd560724840780f96372c177ed2f4d20
Loading
Please register or sign in to comment