HWC/copybit::Add condition for video layer composition

In case of non overlay target composition of the video
layer should base on composition of UI layer as well.
(if taget has dynamic composition)

Change-Id: I5eb91adec340297fdc4b0560f01f74aaf8459586
CRs-fixed: 397517
This commit is contained in:
Ramakant Singh 2012-09-27 10:17:55 +05:30 committed by andrew.boren
parent a4b0340e0f
commit dcda8a5f27

View File

@ -155,7 +155,9 @@ bool CopyBit::prepare(hwc_context_t *ctx, hwc_layer_list_t *list) {
if (hnd->bufferType == BUFFER_TYPE_VIDEO) {
//YUV layer, check, if copybit can be used
if (useCopybitForYUV) {
// mark the video layer to gpu when all layer is
// going to gpu in case of dynamic composition.
if (useCopybitForYUV && useCopybitForRGB) {
list->hwLayers[i].compositionType = HWC_USE_COPYBIT;
sCopyBitDraw = true;
}