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)
This commit is contained in:
Sushil Chauhan 2012-05-07 18:38:59 -07:00 committed by andrew.boren
parent 7d978483ed
commit 574e446d42

View File

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