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:
committed by
Iliyan Malchev
parent
649cda6710
commit
35712cb639
@@ -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
|
//Do not mark as SKIP if it is secure buffer
|
||||||
if (isSkipLayer(&list->hwLayers[i]) && !yuvSecure) {
|
if (isSkipLayer(&list->hwLayers[i]) && !yuvSecure) {
|
||||||
isYuvLayerSkip = true;
|
isYuvLayerSkip = true;
|
||||||
|
skipCount++;
|
||||||
}
|
}
|
||||||
} else if(UNLIKELY(isExtCC(hnd))) {
|
} else if(UNLIKELY(isExtCC(hnd))) {
|
||||||
ccLayerIndex = i;
|
ccLayerIndex = i;
|
||||||
@@ -137,17 +138,10 @@ void getLayerStats(hwc_context_t *ctx, const hwc_display_contents_1_t *list)
|
|||||||
extCount++;
|
extCount++;
|
||||||
//If BLOCK layer present, dont cache index, display BLOCK only.
|
//If BLOCK layer present, dont cache index, display BLOCK only.
|
||||||
if(isExtBlockPresent == false) extLayerIndex = i;
|
if(isExtBlockPresent == false) extLayerIndex = i;
|
||||||
} else if (isSkipLayer(&list->hwLayers[i])) { //Popups
|
} else if (isSkipLayer(&list->hwLayers[i])) {
|
||||||
//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;
|
|
||||||
skipCount++;
|
skipCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
VideoOverlay::setStats(yuvCount, yuvLayerIndex, isYuvLayerSkip,
|
VideoOverlay::setStats(yuvCount, yuvLayerIndex, isYuvLayerSkip,
|
||||||
ccLayerIndex);
|
ccLayerIndex);
|
||||||
|
|||||||
Reference in New Issue
Block a user