Implement SkBlender support in Ganesh.
SkBlenderBase::asFragmentProcessor now returns a working runtime-blender
FP. This FP is appended to the end of the paintFP chain by
skpaint_to_grpaint_impl when an SkPaint contains an SkBlender, and the
GrPaint's XferProcessor factory is set to kSrc.
Unit tests have been added to verify basic functionality is working as
expected; more thorough drawing tests will be added once the CPU side is
running as well (since we don't want GMs that render differently on CPU
Reviewed-by: Brian Osman <email@example.com>
Commit-Queue: Brian Osman <firstname.lastname@example.org>
Commit-Queue: John Stiles <email@example.com>
Auto-Submit: John Stiles <firstname.lastname@example.org>
8 files changed