Index: ui/android/java/src/org/chromium/ui/VSyncMonitor.java |
diff --git a/ui/android/java/src/org/chromium/ui/VSyncMonitor.java b/ui/android/java/src/org/chromium/ui/VSyncMonitor.java |
index e717851aa23d86d7fb474f67076f4549c3dd01a2..8974b99c795cabb45440c9fb4a791067ec956d05 100644 |
--- a/ui/android/java/src/org/chromium/ui/VSyncMonitor.java |
+++ b/ui/android/java/src/org/chromium/ui/VSyncMonitor.java |
@@ -101,8 +101,8 @@ public class VSyncMonitor { |
// after that it asymptotically approaches the real value. |
long lastRefreshDurationNano = frameTimeNanos - mGoodStartingPointNano; |
float lastRefreshDurationWeight = 0.1f; |
- mRefreshPeriodNano += (long) (lastRefreshDurationWeight * |
- (lastRefreshDurationNano - mRefreshPeriodNano)); |
+ mRefreshPeriodNano += (long) (lastRefreshDurationWeight |
+ * (lastRefreshDurationNano - mRefreshPeriodNano)); |
} |
mGoodStartingPointNano = frameTimeNanos; |
onVSyncCallback(frameTimeNanos, getCurrentNanoTime()); |
@@ -219,8 +219,9 @@ public class VSyncMonitor { |
} |
private long estimateLastVSyncTime(long currentTime) { |
- final long lastRefreshTime = mGoodStartingPointNano + |
- ((currentTime - mGoodStartingPointNano) / mRefreshPeriodNano) * mRefreshPeriodNano; |
+ final long lastRefreshTime = mGoodStartingPointNano |
+ + ((currentTime - mGoodStartingPointNano) / mRefreshPeriodNano) |
+ * mRefreshPeriodNano; |
return lastRefreshTime; |
} |