hwc: Use correct z-order in video overlay
Set z-order of video layer to 0 and framebuffer to 1 in case of video overlay composition so that the blending takes effect. Also set is_fg OFF for framebuffer. Change-Id: I05f930074d265d690f29a1003b7c28077df89bbf CRs-fixed: 458180
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
22dd8e7ef2
commit
b5ed029da8
@@ -298,6 +298,7 @@ void setListStats(hwc_context_t *ctx,
|
||||
ctx->listStats[dpy].fbLayerIndex = list->numHwLayers - 1;
|
||||
ctx->listStats[dpy].skipCount = 0;
|
||||
ctx->listStats[dpy].needsAlphaScale = false;
|
||||
ctx->listStats[dpy].preMultipliedAlpha = false;
|
||||
ctx->listStats[dpy].yuvCount = 0;
|
||||
|
||||
for (size_t i = 0; i < list->numHwLayers; i++) {
|
||||
@@ -320,6 +321,8 @@ void setListStats(hwc_context_t *ctx,
|
||||
if(layer->transform & HWC_TRANSFORM_ROT_90)
|
||||
ctx->mNeedsRotator = true;
|
||||
}
|
||||
if(layer->blending == HWC_BLENDING_PREMULT)
|
||||
ctx->listStats[dpy].preMultipliedAlpha = true;
|
||||
|
||||
if(!ctx->listStats[dpy].needsAlphaScale)
|
||||
ctx->listStats[dpy].needsAlphaScale = isAlphaScaled(layer);
|
||||
|
||||
Reference in New Issue
Block a user