diff options
author | egdaniel <egdaniel@google.com> | 2014-10-31 06:55:45 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-31 06:55:45 -0700 |
commit | ed3af6648ffe1044d6fb3f6deac53711cb1280c8 (patch) | |
tree | d796bb157f76dfcfa44c73124a4cda0ec61dd6db /gm/blurs.cpp | |
parent | bd1605905b1ce165e6b5891547c2b612358b47a8 (diff) |
Use 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:
Review URL: https://codereview.chromium.org/689923004
Diffstat (limited to 'gm/blurs.cpp')
0 files changed, 0 insertions, 0 deletions