hwcomposer: Force close bypass MDP pipes on suspend.

Since SF wont compose when device is on suspend mode, MDP_UNSET can
be called to close all allocated bypass pipes.

Change-Id: Ia4610c34e6d89028f8b3400af023296c459dd8d1
(cherry picked from commit 32a9e25b699d7abde661f3ad947ed58a09a1b132)
This commit is contained in:
Jeykumar Sankaran 2012-02-29 16:48:39 -08:00 committed by Andrew Sutherland
parent 8d39eda441
commit dc22c8ffb5

View File

@ -1522,6 +1522,12 @@ static int hwc_set(hwc_composer_device_t *dev,
drawLayerUsingCopybit(dev, &(list->hwLayers[i]), (EGLDisplay)dpy, (EGLSurface)sur);
}
}
} else {
//Device in suspended state. Close all the MDP pipes
#ifdef COMPOSITION_BYPASS
ctx->nPipesUsed = 0;
#endif
ctx->hwcOverlayStatus = HWC_OVERLAY_PREPARE_TO_CLOSE;
}