summaryrefslogtreecommitdiff
path: root/hwc3/ComposerClient.cpp
diff options
context:
space:
mode:
authorAdy Abraham <adyabr@google.com>2022-01-13 18:08:59 -0800
committerAdy Abraham <adyabr@google.com>2022-01-19 00:44:24 +0000
commitc32a79d838052e209126d032849924a14a21e5c8 (patch)
tree519d517a7be11b2a407b6acb2dab9617e1587c11 /hwc3/ComposerClient.cpp
parent88431dc0990b636bd9f565a596fc49fef3de2c7b (diff)
hwc3: add getDisplayPhysicalOrientation
Test: VTS Bug: 213237830 Change-Id: I5d5e874841faee662d0c50537b6b765e5b600e01
Diffstat (limited to 'hwc3/ComposerClient.cpp')
-rw-r--r--hwc3/ComposerClient.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/hwc3/ComposerClient.cpp b/hwc3/ComposerClient.cpp
index 45f9746..6aa2076 100644
--- a/hwc3/ComposerClient.cpp
+++ b/hwc3/ComposerClient.cpp
@@ -222,6 +222,13 @@ ndk::ScopedAStatus ComposerClient::getDisplayedContentSamplingAttributes(
return TO_BINDER_STATUS(err);
}
+ndk::ScopedAStatus ComposerClient::getDisplayPhysicalOrientation(int64_t display,
+ common::Transform* orientation) {
+ DEBUG_FUNC();
+ auto err = mHal->getDisplayPhysicalOrientation(display, orientation);
+ return TO_BINDER_STATUS(err);
+}
+
ndk::ScopedAStatus ComposerClient::getHdrCapabilities(int64_t display, HdrCapabilities* caps) {
DEBUG_FUNC();
auto err = mHal->getHdrCapabilities(display, caps);