From bb53b0e4b97634bc31808965f81b3ab4193d0e84 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 24 Sep 2012 21:27:29 -0700 Subject: [PATCH] When "show visible regions" is enabled we were missing a call to HWC Bug: 7204034 Change-Id: I64dd78362fa75149513a7d9ff92dde175e9b4958 --- services/surfaceflinger/SurfaceFlinger.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 6bd300dde..6ed9843f4 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -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()