am bb53b0e4: When "show visible regions" is enabled we were missing a call to HWC

* commit 'bb53b0e4b97634bc31808965f81b3ab4193d0e84':
  When "show visible regions" is enabled we were missing a call to HWC
This commit is contained in:
Mathias Agopian 2012-09-25 14:42:07 -07:00 committed by Android Git Automerger
commit 40e627c5b0

View File

@ -792,6 +792,12 @@ void SurfaceFlinger::doDebugFlashRegions()
if (mDebugRegion > 1) {
usleep(mDebugRegion * 1000);
}
HWComposer& hwc(getHwComposer());
if (hwc.initCheck() == NO_ERROR) {
status_t err = hwc.prepare();
ALOGE_IF(err, "HWComposer::prepare failed (%s)", strerror(-err));
}
}
void SurfaceFlinger::preComposition()