From 574e446d42e4bea2e940e078b01730e5743a1258 Mon Sep 17 00:00:00 2001 From: Sushil Chauhan Date: Mon, 7 May 2012 18:38:59 -0700 Subject: [PATCH] libhwcomposer: Set bypass transition flag before invalidate() Set flag to ensure HWComposer::invalidate() does not draw with bypass still enabled. Also, log comp bypass transition due to idle-timeout. Change-Id: I3343d092a92c9677d0b9d50ced094c96d229474a (cherry picked from commit f27aebd66249d165c0a3342abf4064a5dc350a6d) --- libhwcomposer/hwcomposer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libhwcomposer/hwcomposer.cpp b/libhwcomposer/hwcomposer.cpp index 6f6b84c..ab0e757 100644 --- a/libhwcomposer/hwcomposer.cpp +++ b/libhwcomposer/hwcomposer.cpp @@ -167,6 +167,7 @@ static inline int max(const int& a, const int& b) { } #ifdef COMPOSITION_BYPASS static void timeout_handler(void *udata) { + LOGD("Comp bypass timeout_handler..."); struct hwc_context_t* ctx = (struct hwc_context_t*)(udata); if(!ctx) { @@ -181,8 +182,9 @@ static void timeout_handler(void *udata) { return; } /* Trigger SF to redraw the current frame */ - proc->invalidate(proc); ctx->idleTimeOut = true; + proc->invalidate(proc); + LOGD("Comp bypass timeout_handler...Done"); } void setLayerbypassIndex(hwc_layer_t* layer, const int bypass_index)