File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
services/java/com/android/server/wm Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,11 @@ public class WindowManagerService extends IWindowManager.Stub
226226 */
227227 static final int DEFAULT_FADE_IN_OUT_DURATION = 400 ;
228228
229+ /**
230+ * Frame rate. TODO: Replace with Display.getRefreshRate() when that is reliable.
231+ */
232+ static final int FRAME_RATE = 48 ;
233+
229234 /**
230235 * If true, the window manager will do its own custom freezing and general
231236 * management of the screen during rotation.
@@ -8660,7 +8665,7 @@ private final void performLayoutAndPlaceSurfacesLockedInner(
86608665 if (needRelayout ) {
86618666 requestAnimationLocked (0 );
86628667 } else if (animating ) {
8663- requestAnimationLocked (currentTime +(1000 /60 )-SystemClock .uptimeMillis ());
8668+ requestAnimationLocked (currentTime +(1000 /FRAME_RATE )-SystemClock .uptimeMillis ());
86648669 }
86658670
86668671 // Finally update all input windows now that the window changes have stabilized.
You can’t perform that action at this time.
0 commit comments