OSDN Git Service

Send POWER_HINT_INTERACTION on rotate.
authorTim Murray <timmurray@google.com>
Fri, 2 Oct 2015 00:07:12 +0000 (17:07 -0700)
committerTim Murray <timmurray@google.com>
Fri, 2 Oct 2015 00:07:12 +0000 (17:07 -0700)
Send a POWER_HINT_INTERACTION to improve redraw performance when the
phone is rotated.

bug 24583227

Change-Id: I1978f0dfb9a25c00ad4da5b44d10410ad7412001

services/core/java/com/android/server/policy/PhoneWindowManager.java

index 5c11800..495346a 100644 (file)
@@ -767,6 +767,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
         private final Runnable mUpdateRotationRunnable = new Runnable() {
             @Override
             public void run() {
+                // send interaction hint to improve redraw performance
+                mPowerManagerInternal.powerHint(PowerManagerInternal.POWER_HINT_INTERACTION, 0);
                 updateRotation(false);
             }
         };