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:
parent
3dfe38ac24
commit
d24467414b
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user