diff options
author | Tim Murray <timmurray@google.com> | 2015-10-01 17:07:12 -0700 |
---|---|---|
committer | Tim Murray <timmurray@google.com> | 2015-10-01 17:07:12 -0700 |
commit | 1f407647d1ac45dc8b8bb7f388c8bae38cd82ea3 (patch) | |
tree | 6d06a2509e7fb76dc2c84c31172b024e8e62258e /services | |
parent | 30fd0628970b418dea382b388120f52504ff2243 (diff) | |
download | frameworks_base-1f407647d1ac45dc8b8bb7f388c8bae38cd82ea3.zip frameworks_base-1f407647d1ac45dc8b8bb7f388c8bae38cd82ea3.tar.gz frameworks_base-1f407647d1ac45dc8b8bb7f388c8bae38cd82ea3.tar.bz2 |
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
Diffstat (limited to 'services')
-rw-r--r-- | services/core/java/com/android/server/policy/PhoneWindowManager.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/policy/PhoneWindowManager.java b/services/core/java/com/android/server/policy/PhoneWindowManager.java index 5c11800..495346a 100644 --- a/services/core/java/com/android/server/policy/PhoneWindowManager.java +++ b/services/core/java/com/android/server/policy/PhoneWindowManager.java @@ -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); } }; |