DescriptionShadow blurs of RGBA bitmaps currently apply the bitmap alpha after blurring, which leads to incorrect results. Instead, we extract the alpha before the blur. There was already a special case for A8 masks; this code simply extends it to ARGB8 masks with transform-only matrices. This restriction is OK for blur masks, which are always drawn 1:1, but could be extended to scaled/rotated masks if required.
This patch does the raster case; an upcoming patch will handle the GPU case.
Patch Set 1 #
Total comments: 2
Patch Set 2 : fixes per tom's comments; handle zoom case; cleanup #
Total comments: 2
Patch Set 3 : Don't set fInitialized twice #Patch Set 4 : Only drawBitmapAsMask() w/RGBA when a mask filter is active #Patch Set 5 : Handle SkBitmapProcShaders in drawPath() #
MessagesTotal messages: 18
|