hwc: Use overlay for video even during popups.

Continue using overlays for videos even during popup animations.

Change-Id: I6e3b1a2dc3328312f6f1745eded6f18a83fda1cd
This commit is contained in:
Saurabh Shah
2012-09-14 10:28:18 -07:00
committed by Iliyan Malchev
parent 649cda6710
commit 35712cb639

View File

@@ -126,6 +126,7 @@ void getLayerStats(hwc_context_t *ctx, const hwc_display_contents_1_t *list)
//Do not mark as SKIP if it is secure buffer
if (isSkipLayer(&list->hwLayers[i]) && !yuvSecure) {
isYuvLayerSkip = true;
skipCount++;
}
} else if(UNLIKELY(isExtCC(hnd))) {
ccLayerIndex = i;
@@ -137,17 +138,10 @@ void getLayerStats(hwc_context_t *ctx, const hwc_display_contents_1_t *list)
extCount++;
//If BLOCK layer present, dont cache index, display BLOCK only.
if(isExtBlockPresent == false) extLayerIndex = i;
} else if (isSkipLayer(&list->hwLayers[i])) { //Popups
//If video layer is below a skip layer
if(yuvLayerIndex != -1 && yuvLayerIndex < (ssize_t)i) {
//Do not mark as SKIP if it is secure buffer
if (!yuvSecure) {
isYuvLayerSkip = true;
} else if (isSkipLayer(&list->hwLayers[i])) {
skipCount++;
}
}
}
}
VideoOverlay::setStats(yuvCount, yuvLayerIndex, isYuvLayerSkip,
ccLayerIndex);