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

Unified Diff: ui/android/java/src/org/chromium/ui/base/WindowAndroid.java

Issue 2222073002: Use the frame time from Choreographer for computeScroll animation time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make it work for real Created 4 years, 4 months 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
« no previous file with comments | « ui/android/java/src/org/chromium/ui/VSyncMonitor.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/java/src/org/chromium/ui/base/WindowAndroid.java
diff --git a/ui/android/java/src/org/chromium/ui/base/WindowAndroid.java b/ui/android/java/src/org/chromium/ui/base/WindowAndroid.java
index 5d3d91326cd701a75dfa41a8b462b70004fbc8b8..411af89424dae6797976bd80b7a4ec44d5e6bc8c 100644
--- a/ui/android/java/src/org/chromium/ui/base/WindowAndroid.java
+++ b/ui/android/java/src/org/chromium/ui/base/WindowAndroid.java
@@ -155,6 +155,15 @@ public class WindowAndroid {
}
/**
+ * @return the last VSync frame time in milli seconds.
+ *
+ * @see org.chromium.ui.VSyncMonitor#getCurrentFrameTimeMillis()
+ */
+ public long getCurrentFrameTimeMillis() {
+ return mVSyncMonitor.getCurrentFrameTimeMillis();
+ }
+
+ /**
* @param context The application context.
*/
@SuppressLint("UseSparseArrays")
« no previous file with comments | « ui/android/java/src/org/chromium/ui/VSyncMonitor.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698