diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2013-05-08 18:03:27 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2013-05-08 18:03:27 +0800 |
commit | 72b94d77c463740af232d3738429813d687ff1aa (patch) | |
tree | d3430177a782ca71df0477377c02e351c3d3047b | |
parent | 5c80053af943770d2dcb6303e46e149fb7bf60df (diff) | |
download | base-72b94d77c463740af232d3738429813d687ff1aa.tar.gz |
Choreographer: make DEFAULT_FRAME_DELAY can be changed by using property
In some emulators, it will need to take more time to finish one frame
display, and that will cause the idle handler not reached by many
message enqueud. so change DEFAULT_FRAME_DELAY to use the value of a
property can make this flexible and be able to avoid such problem
Change-Id: I25ccc178a2acba4a6090579f2b3bfa690b13a429
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r-- | core/java/android/view/Choreographer.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/view/Choreographer.java b/core/java/android/view/Choreographer.java index b6617480764f..f9b712fca667 100644 --- a/core/java/android/view/Choreographer.java +++ b/core/java/android/view/Choreographer.java @@ -78,7 +78,8 @@ public final class Choreographer { // for jitter and hardware variations). Regardless of this value, the animation // and display loop is ultimately rate-limited by how fast new graphics buffers can // be dequeued. - private static final long DEFAULT_FRAME_DELAY = 10; + private static final long DEFAULT_FRAME_DELAY = SystemProperties.getInt( + "debug.choreographer.skipwarning", 10); // The number of milliseconds between animation frames. private static volatile long sFrameDelay = DEFAULT_FRAME_DELAY; |