[CE] Extract transform computation logic to ProjectionSpace
The logic that computes the transformation matrix that maps from one projection space to another currently lives in DisplayDevice::setProjection although it's not specific to the DisplayDevice. In this CL we move this to ProjectionSpace so it can be reused and add appropriate testing. Additionally we move most of the remaining logic from DisplayDevice::setProjection to Output::setProjection. Bug: 161793589 Bug: 165184567 Test: atest ProjectionSpaceTest Test: atest libcompositionengine_test libsurfaceflinger_unittest Test: on phone emualutor test that rotation works propertly Change-Id: Ic65a3ba18eda597edb7d2c8635cccfa7cb58a107
Loading
Please register or sign in to comment