OSDN Git Service

fix a crasher when starting SF with the screen off
authorMathias Agopian <mathias@google.com>
Sun, 5 Feb 2012 10:15:28 +0000 (02:15 -0800)
committerMathias Agopian <mathias@google.com>
Sun, 5 Feb 2012 10:15:28 +0000 (02:15 -0800)
commitf6de1c04ffc2c7a739578b7612944fddb7011ab7
treeab32ca45626f919c2563342804d59811704c5628
parent303d538bb012e82c6b9a98c4930a03455000f761
fix a crasher when starting SF with the screen off

SF could end-up in an infinite crash-loop during startup if it
was stopped while the screen was off. This happened because
the thread that manages screen blanking was started before
other important pieces of SF were initialized.

Change-Id: I0dded11dbf2395fdd57b673859a7aa0fa9eb32b6
services/surfaceflinger/DisplayHardware/DisplayHardwareBase.cpp
services/surfaceflinger/DisplayHardware/DisplayHardwareBase.h
services/surfaceflinger/SurfaceFlinger.cpp