hwc: Close unused pipes before PAN

If the pipes are closed after PAN a blank screen is
seen when when we transition from MDP composition
to GLES composition.
We close the unused pipes at the beginning of the set
since the decision has already been made in prepare.

Bug: 7188473
Change-Id: I6f946fa3d02f1c84fb2bb8d3b8e5c823c1151fd5
Signed-off-by: Iliyan Malchev <malchev@google.com>
This commit is contained in:
Naseer Ahmed
2012-09-27 13:17:59 -04:00
committed by Iliyan Malchev
parent 8c8bfd2f82
commit aee5e6ecca

View File

@@ -275,6 +275,9 @@ static int hwc_set(hwc_composer_device_1 *dev,
{
int ret = 0;
hwc_context_t* ctx = (hwc_context_t*)(dev);
if(!ctx->overlayInUse)
ctx->mOverlay->setState(ovutils::OV_CLOSED);
for (uint32_t i = 0; i < numDisplays; i++) {
hwc_display_contents_1_t* list = displays[i];
switch(i) {
@@ -286,9 +289,6 @@ static int hwc_set(hwc_composer_device_1 *dev,
ret = -EINVAL;
}
}
if(!ctx->overlayInUse)
ctx->mOverlay->setState(ovutils::OV_CLOSED);
return ret;
}