summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Rupesh Bansal <brup@google.com> 2025-02-04 03:55:24 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2025-02-04 03:55:24 -0800
commit152bbe043bf20889d7ecfdeeb8a4b0f7c68000b6 (patch)
treec44d5b5ba513bb6c3bc35237426088ab7ca8718b
parentb97e83fb12d1cb21d019cf7125e093f59128165d (diff)
parente965e05a7fa0d836aaed34963d75409f69d97490 (diff)
Merge "Removed vsync offset check from display info equality" into main
-rw-r--r--core/java/android/view/DisplayInfo.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/view/DisplayInfo.java b/core/java/android/view/DisplayInfo.java
index e75b1b0bd17a..ecdbaa3cd2f4 100644
--- a/core/java/android/view/DisplayInfo.java
+++ b/core/java/android/view/DisplayInfo.java
@@ -493,8 +493,6 @@ public final class DisplayInfo implements Parcelable {
&& logicalDensityDpi == other.logicalDensityDpi
&& physicalXDpi == other.physicalXDpi
&& physicalYDpi == other.physicalYDpi
- && appVsyncOffsetNanos == other.appVsyncOffsetNanos
- && presentationDeadlineNanos == other.presentationDeadlineNanos
&& state == other.state
&& committedState == other.committedState
&& ownerUid == other.ownerUid
@@ -517,6 +515,8 @@ public final class DisplayInfo implements Parcelable {
if (compareRefreshRate) {
return isEqualWithoutRefreshRate
&& (getRefreshRate() == other.getRefreshRate())
+ && appVsyncOffsetNanos == other.appVsyncOffsetNanos
+ && presentationDeadlineNanos == other.presentationDeadlineNanos
&& (modeId == other.modeId);
}
return isEqualWithoutRefreshRate;