From e8c4c541b23153f3f57a934ed2b214a34a05130c Mon Sep 17 00:00:00 2001 From: Jeykumar Sankaran Date: Thu, 23 Aug 2012 11:07:40 -0700 Subject: [PATCH] libhwcomposer: Close MDP PIPES in hwc_prepare. Since MDP is doing a deferred close on pipes after PAN DISPLAY HWC can close the pipes in prepare Change-Id: Ia451e3b2e388d1b2199a14e31c3991d5d1b057c8 --- libhwcomposer/hwc.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libhwcomposer/hwc.cpp b/libhwcomposer/hwc.cpp index 4dd4662..462a63e 100644 --- a/libhwcomposer/hwc.cpp +++ b/libhwcomposer/hwc.cpp @@ -110,6 +110,7 @@ static int hwc_prepare(hwc_composer_device_t *dev, hwc_layer_list_t* list) } else { // Else set this flag to false, otherwise video cases // fail in non-overlay targets. ctx->overlayInUse = false; + ctx->mOverlay->setState(ovutils::OV_CLOSED); } } @@ -197,8 +198,6 @@ static int hwc_set(hwc_composer_device_t *dev, ctx->qbuf->unlockAll(); } - if(!ctx->overlayInUse) - ctx->mOverlay->setState(ovutils::OV_CLOSED); ctx->qbuf->unlockAllPrevious(); return ret;