From 72aff33e3ec6bf4bfc3461a5a5044fe425d05ea5 Mon Sep 17 00:00:00 2001 From: Naomi Luis Date: Wed, 1 Feb 2012 13:53:38 -0800 Subject: [PATCH] libhwcomposer: Continue the loop when we skip composition. When the HWC_SKIP_COMPOSITION is enabled, continue looping through the layers instead of breaking the loop. Thus we are assured that all overlay layers are always drawn. Change-Id: Ia8d4c7003838cbb86e2f0ea8b5ef2d47516aa011 CRs-fixed: 333986 (cherry picked from commit 8c2a615a0a3d89a5830af3b8117115ae8071bd27) (cherry picked from commit 11ea4a3635a347182f6b2f8f2ad6e3b394a13eda) --- libhwcomposer/hwcomposer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhwcomposer/hwcomposer.cpp b/libhwcomposer/hwcomposer.cpp index 4ec477f..c2f37db 100755 --- a/libhwcomposer/hwcomposer.cpp +++ b/libhwcomposer/hwcomposer.cpp @@ -1229,7 +1229,7 @@ static int hwc_set(hwc_composer_device_t *dev, } else if (list->hwLayers[i].compositionType == HWC_USE_OVERLAY) { drawLayerUsingOverlay(ctx, &(list->hwLayers[i])); } else if (list->flags & HWC_SKIP_COMPOSITION) { - break; + continue; } else if (list->hwLayers[i].compositionType == HWC_USE_COPYBIT) { drawLayerUsingCopybit(dev, &(list->hwLayers[i]), (EGLDisplay)dpy, (EGLSurface)sur);