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

Bug: 7204034
Change-Id: I64dd78362fa75149513a7d9ff92dde175e9b4958
This commit is contained in:
Mathias Agopian 2012-09-24 21:27:29 -07:00
parent f68c825c75
commit bb53b0e4b9
1 changed files with 6 additions and 0 deletions

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