summaryrefslogtreecommitdiff
path: root/hwc3/ComposerClient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hwc3/ComposerClient.cpp')
-rw-r--r--hwc3/ComposerClient.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/hwc3/ComposerClient.cpp b/hwc3/ComposerClient.cpp
index 7f73d0f..edd8771 100644
--- a/hwc3/ComposerClient.cpp
+++ b/hwc3/ComposerClient.cpp
@@ -433,15 +433,20 @@ ndk::ScopedAStatus ComposerClient::setIdleTimerEnabled(int64_t display, int32_t
return TO_BINDER_STATUS(err);
}
-ndk::ScopedAStatus ComposerClient::setRefreshRateChangedCallbackDebugEnabled(int64_t /* display */,
- bool /* enabled */) {
- // TODO(b/267825022) Add implementation for the HAL and pass appropriate binder status
- return ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION);
+ndk::ScopedAStatus ComposerClient::setRefreshRateChangedCallbackDebugEnabled(int64_t display,
+ bool enabled) {
+ DEBUG_DISPLAY_FUNC(display);
+ auto err = mHal->setRefreshRateChangedCallbackDebugEnabled(display, enabled);
+ return TO_BINDER_STATUS(err);
}
void ComposerClient::HalEventCallback::onRefreshRateChangedDebug(
- const RefreshRateChangedDebugData&) {
- // TODO(b/267825022) Add implementation for the HAL
+ const RefreshRateChangedDebugData& data) {
+ DEBUG_DISPLAY_FUNC(data.display);
+ auto ret = mCallback->onRefreshRateChangedDebug(data);
+ if (!ret.isOk()) {
+ LOG(ERROR) << "failed to send onRefreshRateChangedDebug:" << ret.getDescription();
+ }
}
void ComposerClient::HalEventCallback::onHotplug(int64_t display, bool connected) {