copybit: hack to always request premultiplied alpha blend.

The kernel will only do it for images with an alpha plane.

Change-Id: Idcba41945ed7d17daae0a5bcc48c64a82a49dded
Signed-off-by: Dima Zavin <dima@android.com>
This commit is contained in:
Dima Zavin 2009-09-24 01:07:33 -07:00
parent 3dfe38ac24
commit d24467414b

View File

@ -192,7 +192,7 @@ static void set_rects(struct copybit_context_t *dev,
static void set_infos(struct copybit_context_t *dev, struct mdp_blit_req *req) {
req->alpha = dev->mAlpha;
req->transp_mask = MDP_TRANSP_NOP;
req->flags = dev->mFlags;
req->flags = dev->mFlags | MDP_BLEND_FG_PREMULT;
}
/** copy the bits */