Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: ui/android/java/src/org/chromium/ui/VSyncMonitor.java

Issue 744453002: Fix a bunch of Java Checkstyle issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NeedsBraces to info Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
« no previous file with comments | « tools/android/checkstyle/chromium-style-5.0.xml ('k') | ui/android/java/src/org/chromium/ui/base/LocalizationUtils.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698