DescriptionUse Color Processor for color bitmap text draws on gpu.
This change is here since previously color bitmap text was rendered using a
geometry processor in the coverage stage. The problem with this is that we
cannot correctly do xfer modes with this method. So I now make color bitmap text
draw using a color stage in the same was as a draw bitmap call.
One issue that arrises from this fix is that we end up adding this final color
processor after any previous color processors. Thus if we have a custom blend
implemented as a color processor it will be before this text one and we won't
blend correctly. This issue will get fixed once an xfer processor is fully
implemented. I have hacked a test locally to show that if we can add the text
color processor to the begining of the color stages we do blend correctly in all
cases (so the xfer processor will be a fix).
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/ed3af6648ffe1044d6fb3f6deac53711cb1280c8
Patch Set 1 #Patch Set 2 : Clean up #
Total comments: 5
Patch Set 3 : Update VA names #Patch Set 4 : Fix Gm flags #
Messages
Total messages: 9 (2 generated)
|