viz: Apply screen rotation to Display rendering for SurfaceControl.
If the display is rotated, the app is required to apply this rotation at
render time to produce buffers sized to the display's default
orientation if they will be used at scanout. Failing to do so forces
that layer to go through GPU composition in SurfaceFlinger on Android.
This change forwards the current screen rotation to the viz::Display in
the GPU process so it can be applied to the aggregated CompositorFrame
at draw time. If the root render pass has any copy requests, an
additional render pass is added to ensure that the display transform is
not applied to the result of those requests.
In addition, since SurfaceControl requires the display and damage rects
to be in the pre display transform screen space, the OutputSurface
implementation takes care of this on the client side itself.
Rfirstname.lastname@example.org, email@example.com, firstname.lastname@example.org
Reviewed-by: Khushal <email@example.com>
Reviewed-by: danakj <firstname.lastname@example.org>
Reviewed-by: Daniele Castagna <email@example.com>
Reviewed-by: Antoine Labour <firstname.lastname@example.org>
Reviewed-by: Tom Sepez <email@example.com>
Reviewed-by: Bo <firstname.lastname@example.org>
Reviewed-by: enne <email@example.com>
Commit-Queue: Khushal <firstname.lastname@example.org>
Auto-Submit: Khushal <email@example.com>
2 files changed