summaryrefslogtreecommitdiff
path: root/hwc3/impl/HalImpl.cpp
diff options
context:
space:
mode:
authorYichi Chen <yichichen@google.com>2022-01-13 15:55:29 +0800
committerYichi Chen <yichichen@google.com>2022-02-08 20:12:51 +0800
commitcd6f3e72a8cb3253fdba5968b24123dbb1678f0b (patch)
treebf835d57bd7fcc39c376d9b26fc591ed51a65460 /hwc3/impl/HalImpl.cpp
parent846e2d5161c256e60e6fb5ff688e768b436e2826 (diff)
hwc: declare the support of DISPLAY_DECORATION in DisplayCapability
The display reports the support DISPLAY_DECORATION when rcdConfigs are created during initDisplayInterface. Bug: 193171134 Test: enable RCD layer from DisplayCapability Change-Id: I53dbbc21e6c3fc02e68f6d7cf37cccf97ddf7617
Diffstat (limited to 'hwc3/impl/HalImpl.cpp')
-rw-r--r--hwc3/impl/HalImpl.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/hwc3/impl/HalImpl.cpp b/hwc3/impl/HalImpl.cpp
index fbdfb24..c94545f 100644
--- a/hwc3/impl/HalImpl.cpp
+++ b/hwc3/impl/HalImpl.cpp
@@ -304,11 +304,11 @@ int32_t HalImpl::getDisplayAttribute(int64_t display, int32_t config,
return HWC2_ERROR_NONE;
}
-int32_t HalImpl::getDisplayBrightnessSupport(int64_t display, bool* outSupport) {
+int32_t HalImpl::getDisplayBrightnessSupport(int64_t display, bool& outSupport) {
ExynosDisplay* halDisplay;
RET_IF_ERR(getHalDisplay(display, halDisplay));
- return halDisplay->getDisplayBrightnessSupport(outSupport);
+ return halDisplay->getDisplayBrightnessSupport(&outSupport);
}
int32_t HalImpl::getDisplayCapabilities(int64_t display,
@@ -415,14 +415,14 @@ int32_t HalImpl::getDisplayPhysicalOrientation(int64_t display,
return HWC2_ERROR_UNSUPPORTED;
}
-int32_t HalImpl::getDozeSupport(int64_t display, bool* support) {
+int32_t HalImpl::getDozeSupport(int64_t display, bool& support) {
ExynosDisplay* halDisplay;
RET_IF_ERR(getHalDisplay(display, halDisplay));
int32_t hwcSupport;
RET_IF_ERR(halDisplay->getDozeSupport(&hwcSupport));
- h2a::translate(hwcSupport, *support);
+ h2a::translate(hwcSupport, support);
return HWC2_ERROR_NONE;
}
@@ -1007,4 +1007,11 @@ int HalImpl::setExpectedPresentTime(
return HWC2_ERROR_NONE;
}
+int32_t HalImpl::getRCDLayerSupport(int64_t display, bool& outSupport) {
+ ExynosDisplay* halDisplay;
+ RET_IF_ERR(getHalDisplay(display, halDisplay));
+
+ return halDisplay->getRCDLayerSupport(outSupport);
+}
+
} // namespace aidl::android::hardware::graphics::composer3::impl