Merge "hwc: Disable idle invalidation for command mode panels"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
a1af059bba
@@ -123,20 +123,24 @@ bool MDPComp::init(hwc_context_t *ctx) {
|
|||||||
sMaxPipesPerMixer = min(val, MAX_PIPES_PER_MIXER);
|
sMaxPipesPerMixer = min(val, MAX_PIPES_PER_MIXER);
|
||||||
}
|
}
|
||||||
|
|
||||||
long idle_timeout = DEFAULT_IDLE_TIME;
|
if(ctx->mMDP.panel != MIPI_CMD_PANEL) {
|
||||||
if(property_get("debug.mdpcomp.idletime", property, NULL) > 0) {
|
// Idle invalidation is not necessary on command mode panels
|
||||||
if(atoi(property) != 0)
|
long idle_timeout = DEFAULT_IDLE_TIME;
|
||||||
idle_timeout = atoi(property);
|
if(property_get("debug.mdpcomp.idletime", property, NULL) > 0) {
|
||||||
}
|
if(atoi(property) != 0)
|
||||||
|
idle_timeout = atoi(property);
|
||||||
|
}
|
||||||
|
|
||||||
//create Idle Invalidator only when not disabled through property
|
//create Idle Invalidator only when not disabled through property
|
||||||
if(idle_timeout != -1)
|
if(idle_timeout != -1)
|
||||||
idleInvalidator = IdleInvalidator::getInstance();
|
idleInvalidator = IdleInvalidator::getInstance();
|
||||||
|
|
||||||
if(idleInvalidator == NULL) {
|
if(idleInvalidator == NULL) {
|
||||||
ALOGE("%s: failed to instantiate idleInvalidator object", __FUNCTION__);
|
ALOGE("%s: failed to instantiate idleInvalidator object",
|
||||||
} else {
|
__FUNCTION__);
|
||||||
idleInvalidator->init(timeout_handler, ctx, idle_timeout);
|
} else {
|
||||||
|
idleInvalidator->init(timeout_handler, ctx, idle_timeout);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user