libhwcomposer: Unlock video layers below the SKIP_LAYER.
If there is any video layer below the HWC_SKIP_LAYER, we compose that video layer using the GPU. Unlock any previous video buffer that were sent to the overlay. CRs-fixed: 333974 Change-Id: I1937ca8b139f40453a3bccb0b490fd4d65fa1f52 (cherry picked from commit 48a3996a2178244ce6365f97212c55e7ab33752a) (cherry picked from commit f4a08165b2d3be97b72287fc4001cb5c90d57c07)
This commit is contained in:
parent
bd1aed8185
commit
7407479717
@ -849,8 +849,15 @@ static int hwc_prepare(hwc_composer_device_t *dev, hwc_layer_list_t* list) {
|
||||
// Mark every layer below the SKIP layer to be composed by the GPU
|
||||
while (layer_countdown >= 0)
|
||||
{
|
||||
private_handle_t *countdown_handle =
|
||||
(private_handle_t *)list->hwLayers[layer_countdown].handle;
|
||||
if (countdown_handle && (countdown_handle->bufferType == BUFFER_TYPE_VIDEO)
|
||||
&& (yuvBufferCount == 1)) {
|
||||
unlockPreviousOverlayBuffer(ctx);
|
||||
skipComposition = false;
|
||||
}
|
||||
list->hwLayers[layer_countdown].compositionType = HWC_FRAMEBUFFER;
|
||||
list->hwLayers[i].hints &= ~HWC_HINT_CLEAR_FB;
|
||||
list->hwLayers[layer_countdown].hints &= ~HWC_HINT_CLEAR_FB;
|
||||
layer_countdown--;
|
||||
}
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user