hwc: Set premultiplied alpha flag appropriately

Change-Id: I516dc5c6d3bb4f02c98b4add5e818ae88d08eba4
This commit is contained in:
Steve Kondik 2012-09-05 12:31:32 -07:00 committed by Andrew Sutherland
parent 4c01c36778
commit e7e5ddbba9
2 changed files with 4 additions and 1 deletions

View File

@ -297,7 +297,9 @@ int MDPComp::prepare(hwc_context_t *ctx, hwc_layer_t *layer,
ovutils::eIsFg isFG = mdp_info.isFG ? ovutils::IS_FG_SET
: ovutils::IS_FG_OFF;
ovutils::setMdpFlags(mdpFlags, ovutils::OV_MDP_BACKEND_COMPOSITION);
if (layer->blending == HWC_BLENDING_PREMULT) {
ovutils::setMdpFlags(mdpFlags, ovutils::OV_MDP_BLEND_FG_PREMULT);
}
ovutils::PipeArgs parg(mdpFlags,
info,
zOrder,

View File

@ -294,6 +294,7 @@ enum eMdpFlags {
OV_MDP_SOURCE_ROTATED_90 = MDP_SOURCE_ROTATED_90,
OV_MDP_MEMORY_ID_TYPE_FB = MDP_MEMORY_ID_TYPE_FB,
OV_MDP_BACKEND_COMPOSITION = MDP_BACKEND_COMPOSITION,
OV_MDP_BLEND_FG_PREMULT = MDP_BLEND_FG_PREMULT,
};
enum eZorder {