Today we have two ways of specifying colors to a GrDrawTarget draw: 1. Set constant ...
12 years, 11 months ago
(2012-01-17 17:01:25 UTC)
#1
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 ...
12 years, 11 months ago
(2012-01-17 19:36:05 UTC)
#2
Issue 5543052: add constant coverage
(Closed)
Created 12 years, 11 months ago by bsalomon
Modified 12 years, 11 months ago
Reviewers: TomH
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 2