Merge "make sure to repaint the screen when screen turns on"
This commit is contained in:
commit
568569aaa0
@ -1471,15 +1471,14 @@ void SurfaceFlinger::onScreenAcquired() {
|
|||||||
// this is a temporary work-around, eventually this should be called
|
// this is a temporary work-around, eventually this should be called
|
||||||
// by the power-manager
|
// by the power-manager
|
||||||
SurfaceFlinger::turnElectronBeamOn(mElectronBeamAnimationMode);
|
SurfaceFlinger::turnElectronBeamOn(mElectronBeamAnimationMode);
|
||||||
mDirtyRegion.set(hw.bounds());
|
|
||||||
// from this point on, SF will process updates again
|
// from this point on, SF will process updates again
|
||||||
|
repaintEverything();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SurfaceFlinger::onScreenReleased() {
|
void SurfaceFlinger::onScreenReleased() {
|
||||||
const DisplayHardware& hw(graphicPlane(0).displayHardware());
|
const DisplayHardware& hw(graphicPlane(0).displayHardware());
|
||||||
if (hw.isScreenAcquired()) {
|
if (hw.isScreenAcquired()) {
|
||||||
mEventThread->onScreenReleased();
|
mEventThread->onScreenReleased();
|
||||||
mDirtyRegion.set(hw.bounds());
|
|
||||||
hw.releaseScreen();
|
hw.releaseScreen();
|
||||||
// from this point on, SF will stop drawing
|
// from this point on, SF will stop drawing
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user