Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 568569aa authored by Mathias Agopian's avatar Mathias Agopian Committed by Android (Google) Code Review
Browse files

Merge "make sure to repaint the screen when screen turns on"

parents 8ed0486b 8acce204
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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
    }