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

Unified Diff: remoting/android/java/src/org/chromium/chromoting/DesktopView.java

Issue 2060643002: [Chromoting] Fling gestures on Android client are too fast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/android/java/src/org/chromium/chromoting/DesktopView.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/DesktopView.java b/remoting/android/java/src/org/chromium/chromoting/DesktopView.java
index b941562708e55886136c9fd7608e437c7345e251..21233c9ef4ef449aee14ad63257440d835e55080 100644
--- a/remoting/android/java/src/org/chromium/chromoting/DesktopView.java
+++ b/remoting/android/java/src/org/chromium/chromoting/DesktopView.java
@@ -201,18 +201,14 @@ public class DesktopView extends SurfaceView implements DesktopViewInterface,
getHolder().unlockCanvasAndPost(canvas);
- if (!mOnPaint.isEmpty()) {
- requestRepaint();
- } else {
- synchronized (mAnimationLock) {
- if (mInputAnimationRunning) {
- getHandler().postAtTime(new Runnable() {
- @Override
- public void run() {
- processAnimation();
- }
- }, startTimeMs + 30);
- }
+ synchronized (mAnimationLock) {
+ if (mInputAnimationRunning) {
+ getHandler().postAtTime(new Runnable() {
+ @Override
+ public void run() {
+ processAnimation();
+ }
+ }, startTimeMs + 30);
}
}
}
@@ -225,6 +221,8 @@ public class DesktopView extends SurfaceView implements DesktopViewInterface,
if (running) {
mInputHandler.processAnimation();
requestRepaint();
+ } else if (!mOnPaint.isEmpty()) {
+ requestRepaint();
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698