summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorDave Burke <daveburke@google.com>2011-11-04 20:55:30 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2011-11-04 20:55:30 +0000
commita3af4c94dfbf3336004a38011f6453bfcd7fd638 (patch)
tree35ab1e6f70d756ee1b3712c7752f99f082767fe3 /services
parent515c6b44d57b829792267594a355cd2831582197 (diff)
parent3ee471889b09d90affddd00c409a515a64b6861b (diff)
downloadframeworks_base-a3af4c94dfbf3336004a38011f6453bfcd7fd638.zip
frameworks_base-a3af4c94dfbf3336004a38011f6453bfcd7fd638.tar.gz
frameworks_base-a3af4c94dfbf3336004a38011f6453bfcd7fd638.tar.bz2
am 3ee47188: Frame rate to 48 fps
* commit '3ee471889b09d90affddd00c409a515a64b6861b': Frame rate to 48 fps
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/wm/WindowManagerService.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/services/java/com/android/server/wm/WindowManagerService.java b/services/java/com/android/server/wm/WindowManagerService.java
index 2cd3062..fbd2e1e 100644
--- a/services/java/com/android/server/wm/WindowManagerService.java
+++ b/services/java/com/android/server/wm/WindowManagerService.java
@@ -227,6 +227,11 @@ public class WindowManagerService extends IWindowManager.Stub
static final int DEFAULT_FADE_IN_OUT_DURATION = 400;
/**
+ * Frame rate. TODO: Replace with Display.getRefreshRate() when that is reliable.
+ */
+ static final int FRAME_RATE = 48;
+
+ /**
* If true, the window manager will do its own custom freezing and general
* management of the screen during rotation.
*/
@@ -8682,7 +8687,7 @@ public class WindowManagerService extends IWindowManager.Stub
if (needRelayout) {
requestAnimationLocked(0);
} else if (animating) {
- requestAnimationLocked(currentTime+(1000/60)-SystemClock.uptimeMillis());
+ requestAnimationLocked(currentTime+(1000/FRAME_RATE)-SystemClock.uptimeMillis());
}
// Finally update all input windows now that the window changes have stabilized.