commit | 3b3cbb5325e1a8bce09200644b5667fb321d9b90 | [log] [tgz] |
---|---|---|
author | Jorim Jaggi <jjaggi@google.com> | Thu Sep 24 17:35:58 2015 -0700 |
committer | Jorim Jaggi <jjaggi@google.com> | Fri Sep 25 01:30:56 2015 +0000 |
tree | a05a9a9f5bf7cefb988a7ace3a8e992e875ec29c | |
parent | ad26dc5f15d6ac13741ad8724c25ef8c58e73e81 [diff] |
Do not issue config change command when not needed This caused a but where WindowManager was blocked on this to perform a layout, leading to delays in screen wake-ups. Bug: 24383169 Change-Id: I42bc08dae9057060f09c301328bb4839a970c597
diff --git a/services/core/java/com/android/server/display/LocalDisplayAdapter.java b/services/core/java/com/android/server/display/LocalDisplayAdapter.java index be37f52..088d96e 100644 --- a/services/core/java/com/android/server/display/LocalDisplayAdapter.java +++ b/services/core/java/com/android/server/display/LocalDisplayAdapter.java
@@ -544,7 +544,7 @@ physIndex = findDisplayInfoIndexLocked(colorTransformId, modeId); } } - if (physIndex > 0 && mActivePhysIndex == physIndex) { + if (mActivePhysIndex == physIndex) { return; } SurfaceControl.setActiveConfig(getDisplayTokenLocked(), physIndex);