From 2657e2e851380c058e26b369da1518ec65e2f314 Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Fri, 14 Sep 2012 10:34:58 -0700 Subject: [PATCH] hwc: Close overlay when HWC disabled * SF will disable HWC before showing the electron beam animation. Close the overlay so that the GPU can be used. Change-Id: I25bb3ed5cd9a5d80a590af4f94f2d0b903e98352 --- libhwcomposer/hwc.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libhwcomposer/hwc.cpp b/libhwcomposer/hwc.cpp index 462a63e..5a32a97 100644 --- a/libhwcomposer/hwc.cpp +++ b/libhwcomposer/hwc.cpp @@ -112,6 +112,10 @@ static int hwc_prepare(hwc_composer_device_t *dev, hwc_layer_list_t* list) ctx->overlayInUse = false; ctx->mOverlay->setState(ovutils::OV_CLOSED); } + } else { + ctx->overlayInUse = false; + ctx->mOverlay->setState(ovutils::OV_CLOSED); + ctx->qbuf->unlockAll(); } return 0;