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:
parent
d36bbb8528
commit
a2f3efa162
9 changed files with 156 additions and 6 deletions
|
|
@ -36,3 +36,13 @@ enum class Colorspace : int32_t {
|
|||
kRgbWideFloat,
|
||||
kBt601Ycc,
|
||||
};
|
||||
|
||||
/**
|
||||
* Display panel orientation property values.
|
||||
*/
|
||||
enum PanelOrientation {
|
||||
kModePanelOrientationNormal = 0,
|
||||
kModePanelOrientationBottomUp,
|
||||
kModePanelOrientationLeftUp,
|
||||
kModePanelOrientationRightUp
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue