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)
This commit is contained in:
parent
7407479717
commit
72aff33e3e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user