Multiply the Alpha of mask to the premultiplied image 76/209676/6
authorSunghyun kim <scholb.kim@samsung.com>
Wed, 10 Jul 2019 03:41:46 +0000 (12:41 +0900)
committersunghyun kim <scholb.kim@samsung.com>
Tue, 16 Jul 2019 01:22:46 +0000 (01:22 +0000)
commit8b610c874fc8985e740b383d85817778c0927c58
tree2c47907b22b3aace1127c7b44b6ca67e0957ff00
parentd70ea0b461df10b83f53d259343d3a56c5c2c236
Multiply the Alpha of mask to the premultiplied image

After move MultiplyColorByAlpha() from main thread to resource thread, MultiplyColorByAlpha() is called first than ApplyMask().
In this case, the alpha value of mask is not multiplied properly to other channels in the image.
Therefore, if image is premultiplied, the other channels of the image need to multiply by alpha of mask.

Change-Id: I60c056460537db604566f080302be09a6f88d047
dali/internal/imaging/common/alpha-mask.cpp