hwc: Set premultiplied alpha flag appropriately
Change-Id: I516dc5c6d3bb4f02c98b4add5e818ae88d08eba4
This commit is contained in:
parent
4c01c36778
commit
e7e5ddbba9
@ -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,
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user