On Fri, May 25, 2012 at 5:21 AM, Marshall Greenblatt
<
magree...@gmail.com> wrote:
> Hi All,
>
> I'm using skia to render a block with alpha transparency on top of a
> completely transparent background. I would like the result to keep the
> source RGB values and only change the alpha value. Instead, the whole ARGB
> value is blended. This appears to be done in the S32A_Blend_BlitRow32_SSE2
> function:
>
> alpha = 0xbf
> src_pixel = 0xffffffffffffffffffffffffffffffff
> dst_pixel = 0000000000000000000000000000000000
> result = 0xbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbf
>
> Instead, I'm seeking the following result:
>
> alpha = 0xbf
> src_pixel = 0xffffffffffffffffffffffffffffffff
> dst_pixel = 0000000000000000000000000000000000
> result = 0xbfffffffbfffffffbfffffffbfffffff
>
> Does skia support this type of blending in cases where the backround device
> is completely transparent? If not, would it be reasonable to add support for
> it?