diff options
author | John Chang <cweichun@google.com> | 2023-12-13 23:05:32 +0000 |
---|---|---|
committer | John Chang <cweichun@google.com> | 2023-12-14 15:40:55 +0000 |
commit | 84abcc58b38123440f850d254625983d19b3f057 (patch) | |
tree | 236386922e299269c1278c69128f2d32b09abc33 /hwc3/impl | |
parent | 8f0a2bf3005f9e042d36fb4cbcbea031b7182da6 (diff) | |
download | common-84abcc58b38123440f850d254625983d19b3f057.tar.gz |
libhwc2.1:vrrController: ensure notifyExpectedPresent is directed to VRR
Invoke the notifyExpectedPresent function and ensure that the call is
directed to the VRR (Variable Refresh Rate) controller
Bug: 316209922
Test: confirm that the VRR controller successfully receives each
notifyExpectedPresent call
Change-Id: I7f41d607a55a4cca74964637e603f1045581410a
Diffstat (limited to 'hwc3/impl')
-rw-r--r-- | hwc3/impl/HalImpl.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/hwc3/impl/HalImpl.cpp b/hwc3/impl/HalImpl.cpp index 259b779..37e7d9f 100644 --- a/hwc3/impl/HalImpl.cpp +++ b/hwc3/impl/HalImpl.cpp @@ -431,8 +431,15 @@ int32_t HalImpl::getDisplayConfigurations(int64_t display, int32_t, return HWC2_ERROR_NONE; } -int32_t HalImpl::notifyExpectedPresent(int64_t, const ClockMonotonicTimestamp&, int32_t) { - return HWC2_ERROR_UNSUPPORTED; +int32_t HalImpl::notifyExpectedPresent(int64_t display, + const ClockMonotonicTimestamp& expectedPresentTime, + int32_t frameIntervalNs) { + ExynosDisplay* halDisplay; + RET_IF_ERR(getHalDisplay(display, halDisplay)); + + RET_IF_ERR( + halDisplay->notifyExpectedPresent(expectedPresentTime.timestampNanos, frameIntervalNs)); + return HWC2_ERROR_NONE; } int32_t HalImpl::getDisplayConnectionType(int64_t display, DisplayConnectionType* outType) { |