camera: Let SurfaceView transform preview only when rotation override isn't rotation only
Both rotate and crop and SurfaceView shouldn't be rotating the preview
when rotation override is ROTATION_ONLY. This is since, the
ROTATION_ONLY enum value only makes the camera framework send
ROTATE_AND_CROP(90 / 270) to the HAL, however it doesn't change the
sensor orientation.
Since rotate and crop applies to all processed streams, we modify the
SurfaceView transform in this case.
Bug: 364275078
Flag: com.android.window.flags.enable_camera_compat_for_desktop_windowing
Test: Manual in desktop mode for apps using SurfaceView
Change-Id: I3699da778410d0d36cf19afa8ef19acd7a4137f7
Signed-off-by:
Jayant Chowdhary <jchowdhary@google.com>
Loading
Please register or sign in to comment