surfaceflinger: respect install orientation in DisplayRenderArea
DisplayRenderArea getTransform takes install orientation into consideration. Fix getSourceCrop and getRotationFlags to respect install orientation as well. This results in some changes - source crop is no longer rotated by install orientation for LayerRenderArea - rotation flags is no longer rotated by install orientation for LayerRenderArea - source crop is no longer set to getBounds by default for LayerRenderArea (it is already done in captureLayers) - source crop is always rotated by install orientation for DisplayRenderArea AFAICT, all the changes are actually fixes. Quickly verified by forcing primaryDisplayOrientation to DisplayState::eOrientation90. Bug: 113041375 Test: take screenshot, rotate screen, screencap Change-Id: If19df222ae52f6b276f9b0572e7b9bec872e3ae4 Merged-In: If19df222ae52f6b276f9b0572e7b9bec872e3ae4
Loading
Please register or sign in to comment