Clearly signal to Camera FW whether to apply inverse display transform.
Inverse display transform rotates the preview based on the display rotation, so the app doesn't need to apply the display rotation offset. However, when display rotation is sandboxed, this transform doesn't work well. This flag is already disabled for camera compat, but this data is extracted from other parameters of camera compat mode - this change is making it explicit. What's more, when display rotation is sandboxed for external displays, neither of camera-related CameraCompatiblityInfo fields are changed (rotate-and-crop and sensor orientation) - Camera FW could check that display rotation has been sandboxed via this object, but ideally Camera > Flag: com.android.window.flags.enable_camera_compat_sandbox_display_rotation_on_external_displays_bugfix Bug: 395063101 Test: atest WmTests:AppCompatCameraSimReqOrientationPolicyTests Test: atest CameraCompatibilityInfoTest TEst: manual, checked both compatibility camera apps, and responsive apps on the external display, and they have the flag disabled. Change-Id: Ib8526534fd00e5fa574b76e23665e6e97b3af1c1
Loading
Please register or sign in to comment