diff --git a/libhwcomposer/hwcomposer.cpp b/libhwcomposer/hwcomposer.cpp index aacf997..4d81b62 100644 --- a/libhwcomposer/hwcomposer.cpp +++ b/libhwcomposer/hwcomposer.cpp @@ -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; }