DescriptionAdd SkAlphaToScale() and SkAlphaToInvScale{4,8}() for various alpha bit sizes, and unit tests to verify they hold up our desired invariants when blending with pre-multiplied alpha.
BUG=420 (crbug.com/113309)
TEST=AlphaScaleTest
Patch Set 1 #Patch Set 2 : consistent naming for SkAlphaToInvScale #Patch Set 3 : allow for 16bit 565, name by number of alpha bits #Patch Set 4 : don't pre-multiply dst #
Total comments: 1
Patch Set 5 : skalphatoscale: rebase #Patch Set 6 : skalphatoscale: 2013 #
MessagesTotal messages: 6
|