Send POWER_HINT_INTERACTION on rotate.

Send a POWER_HINT_INTERACTION to improve redraw performance when the
phone is rotated.

bug 24583227

Change-Id: I1978f0dfb9a25c00ad4da5b44d10410ad7412001
This commit is contained in:
Tim Murray
2015-10-01 17:07:12 -07:00
parent 30fd062897
commit 1f407647d1

View 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);
}
};