From 3292cae8c37fc8d7cd8bf77fafaa55e6fc7a8cc5 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 8 Oct 2012 15:12:36 -0700 Subject: [PATCH] don't automatically unblank external displays this should be handled by the display-manager. we were doing that in SF because until recently we didn't have enough support in the HAL. however, this is now causing other problems when plugging hdmi while the screen is off for instance. Bug: 7150885 Change-Id: I739b209056a765d38d05295cf202f67ee0f506ae --- services/surfaceflinger/SurfaceFlinger.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 83674172f..17c67f9c6 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -1212,12 +1212,6 @@ void SurfaceFlinger::handleTransactionLocked(uint32_t transactionFlags) state.viewport, state.frame); hw->setDisplayName(state.displayName); mDisplays.add(display, hw); - if (hw->getDisplayType() < DisplayDevice::NUM_DISPLAY_TYPES) { - // notify the system that this display is now up - // (note onScreenAcquired() is safe to call from - // here because we're in the main thread) - onScreenAcquired(hw); - } } } }