From 8acce2046ac7086c3dcfb1fc7c9c39f31de48694 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Fri, 13 Apr 2012 16:18:55 -0700 Subject: [PATCH] make sure to repaint the screen when screen turns on Bug: 6336168 Change-Id: Ic6f11b6bf6c3d849f5cb6ac95961d10d7f88e4ec --- services/surfaceflinger/SurfaceFlinger.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index ce6c4a060..fb0c30520 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -1471,15 +1471,14 @@ void SurfaceFlinger::onScreenAcquired() { // this is a temporary work-around, eventually this should be called // by the power-manager SurfaceFlinger::turnElectronBeamOn(mElectronBeamAnimationMode); - mDirtyRegion.set(hw.bounds()); // from this point on, SF will process updates again + repaintEverything(); } void SurfaceFlinger::onScreenReleased() { const DisplayHardware& hw(graphicPlane(0).displayHardware()); if (hw.isScreenAcquired()) { mEventThread->onScreenReleased(); - mDirtyRegion.set(hw.bounds()); hw.releaseScreen(); // from this point on, SF will stop drawing }