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
This commit is contained in:
parent
1b69283a7f
commit
e8c4c541b2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user