Make NATIVE_WINDOW_TRANSFORM_INVERSE_DISPLAY transforms sticky
When a client sets the NATIVE_WINDOW_TRANSFORM_INVERSE_DISPLAY flag, the buffer producer may override the flag if it sets a buffer transform. The second issue is that SurfaceFlinger may apply a transform hint based on display orientation which may be applied by the buffer producer. The flag NATIVE_WINDOW_TRANSFORM_INVERSE_DISPLAY indicates the client wants to submit buffers in the same orientation regardless of display orientation. So if the flag is set, make it sticky until the surface is disconnected. Secondly, ignore the transform hint if the flag is set. Test: Launch test app and test seamless rotation in portrait mode and landscape mode Test: go/wm-smoke Test: atest libsurfaceflinger_unittest libgui_test SurfaceFlinger_test Bug: 127953232 Change-Id: Ic153faae0f3cdc9d385cdfe8162d3caabac60901
Loading
Please register or sign in to comment