A side effect of returning false in canDisableBlend is that we can't use smooth lines: ...
13 years, 6 months ago
(2011-05-12 20:24:32 UTC)
#1
A side effect of returning false in canDisableBlend is that we can't use smooth
lines:
bool GrGpuGL::useSmoothLines() {
// there is a conflict between using smooth lines and our use of
// premultiplied alpha. Smooth lines tweak the incoming alpha value
// but not in a premul-alpha way. So we only use them when our alpha
// is 0xff.
// TODO: write a smarter line frag shader.
return (kAntialias_StateBit & fCurrDrawState.fFlagBits) &&
canDisableBlend();
}
Smooth lines aren't supported in ES2. That combined with the above consideration
means we need to write a line AA path. For now, though, let's limit the
canDisableBlend() to checking the edgeAA flag since the gm test draws aa lines.
Issue 4526051: Disable blend for edge AA, not general AA
(Closed)
Created 13 years, 6 months ago by bsalomon
Modified 13 years, 6 months ago
Reviewers: senorblanco, Stephen White
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 1