Today we have two ways of specifying colors to a GrDrawTarget draw:
1. Set constant color on GrDrawState
2. per-vertex-colors specified in vertex layout
where 2) overrides 1). For coverage we support per-vertex values but have to way
to specify a constant coverage. We'll want constant coverage when rendering
hairlines that are thinner than 1 pixel (today we tweak the alpha value which is
incompatible with some xfermodes).
This adds a constant coverage on GrDrawState.
Minor bug? Fix that and LGTM. http://codereview.appspot.com/5543052/diff/1010/src/gpu/GrDrawState.h File src/gpu/GrDrawState.h (right): http://codereview.appspot.com/5543052/diff/1010/src/gpu/GrDrawState.h#newcode134 src/gpu/GrDrawState.h:134: * to 1 ...
Issue 5543052: add constant coverage
(Closed)
Created 13 years ago by bsalomon
Modified 13 years ago
Reviewers: TomH
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 2