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

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

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()