Use the primaryDisplayRotationFlags for the source crop calculation
Source frame and bufferCrop calculations use the primaryDisplayRotationFlags using the projection space orientation just for the source crop calculation causes the unwanted source crop in a situation where bufferCrop and source frame are in different coordinate system. Using the same primaryDisplayRotationFlags in Source crop calculation will make all these calculations in line. Test: verified manually with provided test apk in the #comment1 on foldable, tablet and a phone and verified go/wm-smoke atest libsurfaceflinger_unittest atest libcompositionengine_test atest CompositionTest atest OutputLayerTest BUG: 204187592 Change-Id: I23c6dcfb39979fd67eb5e1d21c011476c630058b
Showing
- services/surfaceflinger/CompositionEngine/include/compositionengine/impl/OutputLayer.h 1 addition, 1 deletion...sitionEngine/include/compositionengine/impl/OutputLayer.h
- services/surfaceflinger/CompositionEngine/src/OutputLayer.cpp 3 additions, 5 deletions...ices/surfaceflinger/CompositionEngine/src/OutputLayer.cpp
- services/surfaceflinger/CompositionEngine/tests/OutputLayerTest.cpp 4 additions, 3 deletions...urfaceflinger/CompositionEngine/tests/OutputLayerTest.cpp
Loading
Please register or sign in to comment