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:
parent
a4b0340e0f
commit
dcda8a5f27
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user