summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/DisplayHardware/HWComposer.cpp
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2012-10-10 18:17:51 -0700
committerAndy McFadden <fadden@android.com>2012-10-10 18:17:51 -0700
commit9e9689c11148521d2c16a121a0b87b062be0714c (patch)
treedcfa97e91f8535de0eb0d52dff0e23f102d52a8e /services/surfaceflinger/DisplayHardware/HWComposer.cpp
parent0acb00c2d780b60ed3d71be256460375dd8715b4 (diff)
downloadframeworks_native-9e9689c11148521d2c16a121a0b87b062be0714c.zip
frameworks_native-9e9689c11148521d2c16a121a0b87b062be0714c.tar.gz
frameworks_native-9e9689c11148521d2c16a121a0b87b062be0714c.tar.bz2
Fix HDMI unblank behavior
Two issues: (1) We were announcing the hotplug event before we were ready to handle blank/unblank events, so we were losing the initial unblank that power manager sends us when HDMI is first plugged in. This left the display blank until you toggled the device power off/on. (2) We were retaining fbTargetHandle for HDMI after the display was disconnected. The value didn't get updated when HDMI was reconnected because the display was blank, so we didn't go through that code path. So, when HDMI was re-connected, we passed stale data into the HWC. Bug 7323938 Change-Id: I2335d24fd7b0f00bb23fc63aa7bcf44cb8857c73
Diffstat (limited to 'services/surfaceflinger/DisplayHardware/HWComposer.cpp')
-rw-r--r--services/surfaceflinger/DisplayHardware/HWComposer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/surfaceflinger/DisplayHardware/HWComposer.cpp b/services/surfaceflinger/DisplayHardware/HWComposer.cpp
index be4af51..d9bda11 100644
--- a/services/surfaceflinger/DisplayHardware/HWComposer.cpp
+++ b/services/surfaceflinger/DisplayHardware/HWComposer.cpp
@@ -696,6 +696,7 @@ void HWComposer::disconnectDisplay(int disp) {
free(dd.list);
dd.list = NULL;
dd.framebufferTarget = NULL; // points into dd.list
+ dd.fbTargetHandle = NULL;
}
}