commit | 1eb2ecfe4a34d5d411dfab1516e4e3ce2200a0fd | [log] [tgz] |
---|---|---|
author | ramindani <ramindani@google.com> | Thu Dec 07 11:16:21 2023 -0800 |
committer | Ram Indani <ramindani@google.com> | Wed Dec 13 01:07:58 2023 +0000 |
tree | 4012666184dd6913230cb24e7ac63dfff5513e5e | |
parent | c591d08528bd6e5073615653a5cc448600e16ba5 [diff] |
[HWC3] AIDL change to add refreshPeriodNanos to RefreshRateChangedDebugData Test: atest VtsHalGraphicsComposer3_TargetTest and device boots BUG: 314527560 Change-Id: Iaf961ae6ad118c5cd99b07ec133023297dac7040
diff --git a/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/RefreshRateChangedDebugData.aidl b/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/RefreshRateChangedDebugData.aidl index 2b9801a..e9305e1 100644 --- a/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/RefreshRateChangedDebugData.aidl +++ b/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/RefreshRateChangedDebugData.aidl
@@ -36,4 +36,5 @@ parcelable RefreshRateChangedDebugData { long display; int vsyncPeriodNanos; + int refreshPeriodNanos; }
diff --git a/graphics/composer/aidl/android/hardware/graphics/composer3/RefreshRateChangedDebugData.aidl b/graphics/composer/aidl/android/hardware/graphics/composer3/RefreshRateChangedDebugData.aidl index c1f78d6..11c0112 100644 --- a/graphics/composer/aidl/android/hardware/graphics/composer3/RefreshRateChangedDebugData.aidl +++ b/graphics/composer/aidl/android/hardware/graphics/composer3/RefreshRateChangedDebugData.aidl
@@ -27,4 +27,15 @@ * The display vsync period in nanoseconds. */ int vsyncPeriodNanos; + + /** + * The refresh period of the display in nanoseconds. + * On VRR (Variable Refresh Rate) displays, refreshPeriodNanos can be different from the + * vsyncPeriodNanos because not every vsync cycle of the display is a refresh cycle. + * This should be set to the current refresh period. + * On non-VRR displays this value should be equal to vsyncPeriodNanos + * + * @see vsyncPeriodNanos + */ + int refreshPeriodNanos; }