summaryrefslogtreecommitdiff
path: root/hwc3/ComposerClient.cpp
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-03-07 02:24:27 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-03-07 02:24:27 +0000
commit58b5e577e66276787edc84445f9bab35debf71d0 (patch)
tree188508ec08fc83984f54f4a31e97a0a368fb3968 /hwc3/ComposerClient.cpp
parent916a23578402f828a26fa8ad77a38ee64d9f9061 (diff)
parent3e4ac183f0da7b6d6bc36259b1d2b1b1f6896d9e (diff)
Snap for 9696334 from 3e4ac183f0da7b6d6bc36259b1d2b1b1f6896d9e to udc-release
Change-Id: If7aca2296a44e9c1f172634d48c6a3b285c974fe
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) {