DescriptionWhen the bicubicfilter test is altered as shown, the pre-multiplied color asserts in SkPackARGB32 fire. This happens when the following four colors are being filtered (in cubicBlend):
c0 0x00000000
c1 0x00000000
c2 0xffffffff
c3 0xff000000
yielding:
a 0x00000012
r 0x00000013
g 0x00000013
b 0x00000013
The proposed fix is to just clamp the premultiplied alpha to be the max of the r,g,b components
Patch Set 1 #
Total comments: 2
Patch Set 2 : updated #Patch Set 3 : paranoid check that nothing has changed #MessagesTotal messages: 11
|