1
0
Fork 0

drm_hwcomposer: Implement getDisplayPhysicalOrientation()

Implement ComposerClient::getDisplayPhysicalOrientation() by querying
the DRM display panel orientation property and translating the result to
the correct common::Transform enum value.

The result is used by SurfaceFlinger to correctly rotate the image
before displaying it to the user.

Signed-off-by: Tim Van Patten <timvp@google.com>
This commit is contained in:
Tim Van Patten 2024-10-15 17:44:54 -06:00
parent d36bbb8528
commit a2f3efa162
9 changed files with 156 additions and 6 deletions

View file

@ -36,3 +36,13 @@ enum class Colorspace : int32_t {
kRgbWideFloat,
kBt601Ycc,
};
/**
* Display panel orientation property values.
*/
enum PanelOrientation {
kModePanelOrientationNormal = 0,
kModePanelOrientationBottomUp,
kModePanelOrientationLeftUp,
kModePanelOrientationRightUp
};