DescriptionMake it possible to draw text using an arbitrary Painter.
This requires that Dx and Dy are in Rasterizer rather than
RGBAPainter. RGBAContext then becomes a specialized version
of the more general Context. Dx and Dy are removed from RGBAPainter
and AlphaPainter as they're now unnecessary.
One other minor change: avoid allocating table when gamma is 1.
BTW the Painter abstraction is lovely - a great example
of composability in Go (I think Russ's suggestion of a nil
ss in Paint to signify the end of the spans is probably
slightly better than the current bool flag though).
Patch Set 1 #Patch Set 2 : code review 1240047: Make it possible to draw text using an arbitrary Painter. #
Total comments: 2
Patch Set 3 : code review 1240047: Make it possible to draw text using an arbitrary Painter. #
MessagesTotal messages: 16
|