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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.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 | « no previous file | ui/android/java/src/org/chromium/ui/VSyncMonitor.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/java/src/org/chromium/android_webview/AwContents.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index a98057a4637da49194007cea9199dedd19c32741..dd9a40d374cf08981d37a76bd01cbd1cf1949093 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -37,7 +37,6 @@ import android.view.ViewStructure;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityNodeInfo;
import android.view.accessibility.AccessibilityNodeProvider;
-import android.view.animation.AnimationUtils;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.webkit.JavascriptInterface;
@@ -3256,7 +3255,8 @@ public class AwContents implements SmartClipProvider,
@Override
public void computeScroll() {
if (isDestroyed(NO_WARN)) return;
- nativeOnComputeScroll(mNativeAwContents, AnimationUtils.currentAnimationTimeMillis());
+ nativeOnComputeScroll(mNativeAwContents,
+ mWindowAndroid.getWindowAndroid().getCurrentFrameTimeMillis());
}
}
« no previous file with comments | « no previous file | ui/android/java/src/org/chromium/ui/VSyncMonitor.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698