summaryrefslogtreecommitdiff
path: root/hwc3/impl/HalImpl.cpp
diff options
context:
space:
mode:
authorKriti Dang <kritidang@google.com>2022-01-04 11:25:00 +0100
committerKriti Dang <kritidang@google.com>2022-01-13 14:39:52 +0100
commiteb7da2df07f08ebce7e170908cb8e70dc20b7dc2 (patch)
tree40cc7741433bbdafdf383bbe27c15c859746e99a /hwc3/impl/HalImpl.cpp
parent6f3af4e5be8a2a39a6a7e9f45cb95a030fc13ea6 (diff)
Add boot time display mode APIs implementation in hwc3
Bug: 203520442 Test: m Change-Id: I8ddf502f4b506040f9657eb362fe53cbbbedac66
Diffstat (limited to 'hwc3/impl/HalImpl.cpp')
-rw-r--r--hwc3/impl/HalImpl.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/hwc3/impl/HalImpl.cpp b/hwc3/impl/HalImpl.cpp
index f7ffea2..9e0add5 100644
--- a/hwc3/impl/HalImpl.cpp
+++ b/hwc3/impl/HalImpl.cpp
@@ -578,6 +578,27 @@ int32_t HalImpl::setActiveConfigWithConstraints(
return HWC2_ERROR_NONE;
}
+int32_t HalImpl::setBootDisplayConfig(int64_t display, int32_t config) {
+ ExynosDisplay* halDisplay;
+ RET_IF_ERR(getHalDisplay(display, halDisplay));
+
+ return halDisplay->setBootDisplayConfig(config);
+}
+
+int32_t HalImpl::clearBootDisplayConfig(int64_t display) {
+ ExynosDisplay* halDisplay;
+ RET_IF_ERR(getHalDisplay(display, halDisplay));
+
+ return halDisplay->clearBootDisplayConfig();
+}
+
+int32_t HalImpl::getPreferredBootDisplayConfig(int64_t display, int32_t* config) {
+ ExynosDisplay* halDisplay;
+ RET_IF_ERR(getHalDisplay(display, halDisplay));
+
+ return halDisplay->getPreferredBootDisplayConfig(config);
+}
+
int32_t HalImpl::setAutoLowLatencyMode(int64_t display, bool on) {
ExynosDisplay* halDisplay;
RET_IF_ERR(getHalDisplay(display, halDisplay));